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.
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!
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.
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”.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With