Intellij IDEA opens browser in a new window when running a project
Answered
Hello!
I'm running a Tomcat server for my project and it opens a new browser window with the default settings, although there's an instance of the browser running already. I would like IDEA to use the running browser instance opening a new tab instead, but I can't find where I can set that.
Is it possible to make IDEA open a web page in the running browser instance, instead of creating a new one?
Please sign in to leave a comment.
Bowser is being opened in a new window in case JavaScript debugger is enabled in Tomcat run configuration.
Without JavaScript debugger enabled, a project is opened in a new tab of currently running browser window.
https://i.imgur.com/zSrXAFh.png
Hello, Konstantin! Thank you for your reply.
It appears the JavaScript debugger is off in my configuration. Is there anything else that could cause such behavior?
It may depend on the browser itself. Can you show your Tomcat run configuration and browser's settings page (Preferences | Tools | Web Browsers)? Also, please share the version of the browser in use.
Please also note that by default, IntelliJ IDEA opens a new window with a custom Chrome user data if you are debugging the application, see Starting a debugging session with your default Chrome user data:
https://www.jetbrains.com/help/idea/using-jetbrains-chrome-extension.html