Eclipse CDT: Disable red underlining

风格不统一 提交于 2019-12-21 17:17:17

问题


I use eclipse cdt and I included some files. Unfortunalty I cannot add the include path to my eclipse project since then eclipse will always crash when it starts indexing the newly added includes. Therefore I would like to turn off the feature that highlights errors.

Where can I do this?


回答1:


This is probably not the answer to your problem, but it's actually the answer to your question (which I was looking for and now found out myself): How to disable the red underlining, which can be pretty annoying because it hides underscore characters.

Go to Preferences -> General -> Editors -> Text Editors -> Annotations

(Alternative: Type "annotations" in the filter / search box).

In the "Annotation types" list, select "Errors". Disable the "Text as" setting (to the right).

The same can be done for yellow underlining of warnings (further down in the list).




回答2:


You might try to disable the indexer, if that is really the problem. If you are using indigo release (or one of its milestones or release candidates), try to disable Codan's checkers. Workspace-or-project properties/preferences C++ Code Analysis. This should get rid of the underlining. Codan is relatively new, and at least pre-release had some issues with some of the code checkers.



来源:https://stackoverflow.com/questions/6423184/eclipse-cdt-disable-red-underlining

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!