是否可以快速修复在Eclipse中打开的类中的所有错误?
我有71个错误几乎是一样的,我宁愿不要一一对待。
(注意:我很快修复了一个Java文件)
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)
最满意答案
通常,您可以大量修复错误。 有几种方法 我建议去你的问题视图,选择其中一个错误,并按下Ctrl-1(快速修复)。 它应该为您提供在所有文件中修复所选类型的所有错误的机会。
您还可以将鼠标悬停在文本编辑器中的错误中,然后等待弹出窗口; 应该说“修复这种类型的其他70个错误”。 这样做只适用于特定的文件。
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.
更多推荐
发布评论