立即解决许多问题(Quick fix many problems at once)

编程入门 行业动态 更新时间:2024-10-28 08:21:39
立即解决许多问题(Quick fix many problems at once)

是否可以快速修复在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.

更多推荐

本文发布于:2023-07-08 12:29:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1076409.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:Quick   fix   problems

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!