Eclipse CDT:禁用红色下划线
我使用 eclipse cdt 并且包含了一些文件。不幸的是,我无法将包含路径添加到我的 Eclipse 项目中,因为这样当 Eclipse 开始对新添加的包含进行索引时,它总是会崩溃。因此我想关闭突出显示错误的功能。
我可以在哪里执行此操作?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
这可能不是您问题的答案,但它实际上是您问题的答案(我一直在寻找,现在自己发现了):如何禁用红色下划线,这可能非常烦人,因为它隐藏了下划线字符。
转到首选项 ->一般->编辑->文本编辑器 ->注释
(替代方案:在过滤器/搜索框中键入“注释”)。
在“注释类型”列表中,选择“错误”。禁用“文本为”设置(右侧)。
对于警告的黄色下划线(列表中的下方)也可以执行相同的操作。
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).
如果这确实是问题所在,您可以尝试禁用索引器。如果您正在使用 Indigo 版本(或其里程碑或候选版本之一),请尝试禁用 Codan 的检查器。工作空间或项目属性/首选项 C++ 代码分析。这应该去掉下划线。 Codan 相对较新,至少预发布版的某些代码检查器存在一些问题。
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.
我通过以下方式解决了这个问题:
Window ->首选项->一般->编辑->文本编辑器 ->拼写
,然后您可以:
完全禁用拼写检查
只需在“平台词典”下选择“无”
I solved this by going to:
Window -> Preferences -> General -> Editors -> Text Editors -> Spelling
and then you can:
totally disable spell checking
simply select "none" under "platform dictionary"