How to prevent Intellij Idea from switching between open files when compilation errors occure?

Viewed 101

Whenever I edit code and save the current file, IntelliJ executes the compilation which is normal and a wanted behavior. But everytime a compilation error occures, it opens the files that contain the errors which is very annoying ( I'm not done yet since I'm still editing the code ) .

Is there a way to prevent that behavior other than disabling the auto-compile ?

2 Answers

File / Settings / Build, Execution, Deployment / Compiler / disable Automatically show first error on build.

Go to Preferences | Build, Execution, Deployment | Compiler and uncheck Automatically show first error in editor.

Related