How to disable browser tab opening when running project
Answered
I'm developing a set of services and would like to prevent PHPStorm from opening a browser tab whenever I run my application. Anyone know how to accomplish this?
Please sign in to leave a comment.
Hello,
How do you run your application exactly?
If you use Run configuration, what type of run configuration is that?
I use GAE (Google App Engine) so there is a run config for "App Engine for PHP"
Do you have Show This Page enabled in the Run configuration?
I do not, it is unchecked.
Allyn, unfortunately, I can't check it myself as for some reason App Engine just doesn't work for me, so could you please check if running the same command PhpStorm does (for me it's
) does not open a tab in browser for you?
If it does not, it must be a bug. Please submit it to our issue tracker.
https://youtrack.jetbrains.com/newIssue?project=WI
Running that command with the proper yaml file starts the server up properly and the browser tab does not open.
A workaround that I found is to set PHPStorm's default browser (under Settings -> Tools -> Web Browsers) to "Custom Path" with value "cmd.exe". If I set it to "custom path" but leave the path empty I get a popup asking me to fix it when I start my app, so I needed a placeholder in there.
Not ideal, but it does the trick.