在Eclipse中,我可以删除红色的错误标记吗? [英] In Eclipse, can I remove the red error markers?

查看:390
本文介绍了在Eclipse中,我可以删除红色的错误标记吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要从我不想运行的项目(C ++)中查看源文件。在Eclipse中加载,由于缺少库,它有许多错误。有没有办法告诉Eclipse忽略(或至少没有下划线)这些编译错误?

I need to view source files from a project (C++) that I do not intend to run. Loaded in Eclipse, it has many errors due to missing libraries. Is there a way to tell Eclipse to ignore (or at least not underline in red) those compile errors?

我想使用eclipse来查看语法突出显示的代码,括号匹配等。

I want to use eclipse to view the code for the syntax highlighting, parentheses matching, etc.

推荐答案

有可能告诉Eclipse不要在文本中加下划线/在垂直或概览标尺中显示通过取消选中首选项 - >中的所有复选框。一般 - >编辑 - >文本编辑器 - >注释 - >错误

It's possible to tell Eclipse not to underline the text / show it in the vertical or overview ruler by unchecking all checkboxes in Preferences -> General -> Editors -> Text Editors -> Annotations -> Errors

由于您只想查看代码,建议使用另一个编辑器,如记事本++ 崇高的文本或(我的个人喜好) vim / gvim 。 Eclipse只是查看代码有点太重了。

As you only want to view the code, I'd recommend another editor like Notepad++, Sublime Text or (my personal favourite) vim/gvim. Eclipse is a little bit too 'heavy' for just viewing code.

这篇关于在Eclipse中,我可以删除红色的错误标记吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆