Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In Eclipse, can I remove the red error markers?

Tags:

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?

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

like image 911
snappy Avatar asked Aug 04 '11 22:08

snappy


People also ask

How do I get rid of the red exclamation mark in Eclipse?

use this simple steps right click on the project->properties ->java Build path-> click on the jre system library and remove it after that step click on Add library and add a new jre system library that will resolve it!

How do I remove code coverage color in Eclipse?

Go to Windows Menu bar > Show View > Other > Type coverage and open it. Click on Coverage. To clear highlightings, click on X or XX icon as per convenience.

Why does Eclipse show Red Cross?

In Eclipse IDE, If a project contains errors, a small “red-x” icon will be displayed in the files that are causing the error. This useful feature is supported in Java related perspectives only, for example, “Package Explorer”.

How do I turn off highlighting in Eclipse?

Alt + Shift + O disables and enables this feature, which is called Mark Occurrences. There is also a toolbar button to toggle it on and off.


Video Answer


1 Answers

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

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.

like image 52
vehk Avatar answered Sep 17 '22 16:09

vehk