硬汉嵌入式论坛

 找回密码
 立即注册
查看: 1230|回复: 3
收起左侧

[Source Insight] SourceInsight4.0 条件编译未生效 代码为什么不变灰色?

[复制链接]

76

主题

120

回帖

348

积分

高级会员

积分
348
发表于 2024-9-10 09:29:58 | 显示全部楼层 |阅读模式
不能有这种效果吗?
回复

使用道具 举报

1万

主题

7万

回帖

11万

积分

管理员

Rank: 9Rank: 9Rank: 9

积分
117530
QQ
发表于 2024-9-10 14:25:10 | 显示全部楼层
https://www.sourceinsight.com/doc/v3/af915255.htm


Inactive Code Style
Source Insight’s C/C++ and Resource File parsers can be made to recognize inactive blocks of code that are disabled at compile-time with #ifdef directives. The Options > Preferences: Language dialog box has “Conditions” buttons that allows you to edit the list of known conditional constants.
Blocks of code that are inactive are given the “Inactive Code” style. For more information, see “Conditional Parsing”.

回复

使用道具 举报

76

主题

120

回帖

348

积分

高级会员

积分
348
 楼主| 发表于 2024-9-10 17:23:41 | 显示全部楼层
eric2013 发表于 2024-9-10 14:25
https://www.sourceinsight.com/doc/v3/af915255.htm

需要手动一个一个添加呀,我试了可以,感觉好麻烦
回复

使用道具 举报

4

主题

412

回帖

424

积分

高级会员

积分
424
发表于 2024-9-10 19:39:59 | 显示全部楼层
如果mdk装个vscode + Keil uVision Assistant插件不香么
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

QQ|小黑屋|Archiver|手机版|硬汉嵌入式论坛

GMT+8, 2025-8-13 05:49 , Processed in 0.040168 second(s), 25 queries .

Powered by Discuz! X3.4 Licensed

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表