eclipse导入工程后有些文件没有语法着色的解决方法

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/whorus1/article/details/80811543

eclipse导入工程后发现有个别文件没有语法着色。
对比后发现没有着色的都是比较大的文件,代码量在5000L以上。
查了下发现是eclipse的限制,修改如下配置即可解决:

Window-Preferences——>C/C++——>Editor——>Scalability——>Scalability mode detection里面的数值改大就行了,我这里修改成10000之后,之前没有语法着色的文件都正常了。

Eclipse错误提示: Symbol 'xxxx' could not be resolved

1、眼不见为净:在 Project->Properties->C/C++ General->Code Analysis 中把相关提示选项关闭

2、Project->Properties->C/C++ General->Indexer  选中 Enable project specific settings   Indexer Options  去掉 Index source files not included in the build  去掉index unused headers (部分错误有效)

猜你喜欢

转载自blog.csdn.net/whorus1/article/details/80811543
今日推荐