简体   繁体   English

如何延迟Eclipse错误警告

[英]How to delay Eclipse error warnings

I find the error warnings in Eclipse helpful. 我发现Eclipse中的错误警告很有帮助。 But the problem is they show up too early when I'm still typing and haven't finished the line of code at hand. 但问题是,当我还在打字并且还没有完成手头的代码行时,它们显得过早。 This is distracting. 这令人分心。 How can I delay the error warnings so that they don't show up until I've finished a line and move to the next line? 如何延迟错误警告,以便在我完成一行并移至下一行之前它们不显示?

If you were talking about java code, the checkbox can be found via 'Preferences - Java - Editor' -> 'Report problems as you type'. 如果您正在谈论Java代码,可以通过“首选项 - Java - 编辑器” - >“在键入时报告问题”找到该复选框。

String tmp =             // no syntax error here
String tmp = ;           // line end -> syntax error

For other editors use 'General - Editors - Structured Text Editors'-> 'Report problems as you type'. 对于其他编辑者,请使用“常规 - 编辑器 - 结构化文本编辑器” - >“在键入时报告问题”。 It's not necessary to deactivate 'build automatically'. 没有必要停用'自动构建'。

Answer is from this similar question by proko 答案来自proko的 这个类似问题

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM