How to hide all errors from an Eclipse project?

I took a huge project from one of my friends, and I just want to browse the files to understand some of the coding architectures that they implemented. On my system, I do not have these cans and code, so Eclipse shows almost 10,000 errors. Now I can still go through the code, but the red errors do not allow me to concentrate well. How can I hide all errors in this particular project?

+6
source share
3 answers

I donโ€™t know if you can hide all the errors, but you can

  • limit the number of registered problems in Preferences -> Java -> Compiler -> Building or
  • exclude all files from the build path folder ( Java Build Path -> Souce -> Select source folder and Edit... -> Enter folder name and press Next -> Add '**' as Exclusion pattern )
+3
source

Just disable JavaBuilder in Properties -> Builders . Sometimes after disabling JavaBuilder the error status is not updated (they are still visible). In this case, do the following:

  • In Properties -> Java Build Path -> Source delete the source folders
  • Clear project using Build -> Clear...
  • Disable JavaBuilder as described above.
  • Add source folder again

Thus, you should no longer be annoyed by error messages, but retain all the navigation options with ctrl + click, search links, etc.

+2
source

This is the wrong way, just a workaround if you just want to look at the source code and not worry about compiling and creating it.

You just need to delete the source folder in the java build path, this will help you get rid of those red errors that clutter up your source.

Right-click on Project-> Properties-> Java Build Path-> in Source, select the source folder and click "Delete."

Restart your eclipse.

0
source

Source: https://habr.com/ru/post/906909/


All Articles