简体   繁体   中英

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.

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

在此输入图像描述

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.

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