Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Quick fix many problems at once

Is it possible to quick fix all errors in a class opened in Eclipse?

I have 71 errors that are pretty much the same, I would rather not do it one-by-one.

(Note: I am quick fixing a Java file)

like image 351
Tiago Veloso Avatar asked Jul 20 '11 12:07

Tiago Veloso


4 Answers

Often, you can fix errors en masse. There are several ways. I recommend going to your Problems view, selecting one of the errors, and hitting Ctrl-1 (quick fix). It should offer you the chance to fix all the errors of the selected type, in all files.

You can also mouse over the error in the text editor and wait for a popup; it should say "fix 70 other errors of this type". Doing it this way applies only to the specific file.

like image 97
Ladlestein Avatar answered Nov 16 '22 16:11

Ladlestein


It depends on type of errors.If error are there because of missing imports then you can solve it by pressing CTRL + SHIFT + O. For other errors you have to solve one by one [AFAIK].

like image 38
Harry Joy Avatar answered Nov 16 '22 16:11

Harry Joy


As far as I know, there's no way to do this. Sorry!

like image 1
Benjamin Tan Wei Hao Avatar answered Nov 16 '22 15:11

Benjamin Tan Wei Hao


You would get better answers if you would specify the error type. And if errors are too similar -hopefully identical-, you can always use find&replace tool.

like image 1
besamelsosu Avatar answered Nov 16 '22 15:11

besamelsosu