Disable auto switching between windows in case of error
已回答
Hi,
I have 2 java projects opened in 2 separate windows. Let say projectA and projectB.
In the class I'm working on in projectA, there are build errors.
If I switch to projectB window, let's say to copy a bunch of code, I have no time to do anything.
After 1 or 2 seconds, InetlliJ is switching to the projectA window.
Is there a way of avoiding that ? Something in the settings ?
The only way I found is to open another application and the opening the projectB window. In that case the focus remains in that window. But it's quite annoying.
请先登录再写评论。
Hello,
Please check if disabling “Save files when switching to a different application” in “Settings | Appearance & Behavior | System Settings” will help.
Hello,
Yes it is now working. Thanks.
But I don't know if it is ‘the’ solution.
I would prefer a setting like ‘auto focus on window with error : enable/disable’
Could you please attach information from “Help | About” (click on Copy and paste data here)? Seems build action is executed on save and focus is moved to that window. Do you see build tool window when focus is switched?
Yes there is a build when saving.
But I don't want to disable that because it very useful when working with spring boot.
It is triggering a reboot of the application.
IntelliJ IDEA 2023.3.2 (Ultimate Edition)
Build #IU-233.13135.103, built on December 20, 2023
Runtime version: 17.0.9+7-b1087.9 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 4068M
Cores: 8
Registry:
ide.experimental.ui=true
Non-Bundled Plugins:
com.mnr.java.intellij.idea.plugin.base64helper (3.0.0)
com.godwin.json.parser (1.7.1)
com.intellij.javaee.ejb (233.11799.196)
com.intellij.ml.llm (233.13135.116)
Kotlin: 233.13135.103-IJ
Please disable “Automatically show first error in editor” option in “Settings | Build, Execution, Deployment | Compiler”.
It is also working. I prefer that solution.
Thanks.
You are welcome!