[英]IntelliJ - show all compilation errors automatically in the project when code is changed
In Eclipse, when I make any code changes it automatically shows all compilation errors in the workspace in a console. 在Eclipse中,当我进行任何代码更改时,它会自动在控制台中显示工作区中的所有编译错误。 It seems like in IntelliJ I have to make/build the project in order to see any compilation errors.
似乎在IntelliJ中我必须制作/构建项目才能看到任何编译错误。 Is there a window/tab to show all compilation errors?
是否有窗口/选项卡显示所有编译错误?
Nowadays you have the same option as in eclipse to have automatic builds when you save. 现在你有了与eclipse相同的选项,可以在保存时自动构建。
Edit 编辑
Any changes in the editor will now trigger a compilation either when Ctrl + s is pressed or after a short interval. 现在,编辑器中的任何更改都会在按下Ctrl + s或短暂间隔后触发编辑。
This first image will show a main method and a class with a simple print
method. 第一个图像将显示主方法和具有简单
print
方法的类。 No compilation errors. 没有编译错误。
In the next image I have removed the parameter message
in the print
method. 在下一个图像中,我删除了
print
方法中的参数message
。 That's the only thing I did, I did not even save I just waited a couple of seconds. 这是我唯一做的事情,我甚至没有保存,我等了几秒钟。 And then suddenly the compilation error is shown below because the caller of the method has now supplied too many arguments.
然后突然出现编译错误,因为该方法的调用者现在提供了太多参数。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.