Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open browser after the run button clicked in Intellij Idea CE?

I have simple task in Intellij Idea CE, after clicking Run(Shift+F10), browser must open some page, for example http://localhost:8080. How to do that? I can't find reliable option in Edit configurations.

like image 309
Rinat Tainov Avatar asked Oct 29 '11 15:10

Rinat Tainov


2 Answers

In the "Edit configurations" there's a checkbox for "Start browser" under the "Server" tab in a server configuration.

enter image description here

like image 179
Dave Newton Avatar answered Nov 04 '22 17:11

Dave Newton


You can add various steps to be executed before launch in the Edit Configurations... window. Just add step "External tool", create a new tool pointing to the browser exe, and pass the desired URL (like http://localhost.8080) as a parameter.

If you use Chrome as a browser, you may want to use Only One extension to reuse the existing Tab/Window with the URL when it is already open.

like image 28
Suma Avatar answered Nov 04 '22 17:11

Suma