简体   繁体   中英

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. It seems like in IntelliJ I have to make/build the project in order to see any compilation errors. 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.

在此输入图像描述


Edit

Any changes in the editor will now trigger a compilation either when Ctrl + s is pressed or after a short interval.

This first image will show a main method and a class with a simple print method. No compilation errors.

在此输入图像描述

In the next image I have removed the parameter message in the print method. 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.

在此输入图像描述

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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