WebStorm always opens system default browser
I'm running WebStorm 11 on Windows 7. The default browser on my Windows is IE, but I want WebStorm to launch Run/Debug configurations using Chrome (so that I can do Node debugging). Whatever I do, WebStorm always opens IE.
I tried the following in Settings > Tools > Web Browsers:
- Uncheck all browsers except for Chrome in the browser list
- Change "Default Browser" drop-down to "First in the list"
- Change "Default Browser" drop-down to "Custom path" and specifying the path to chrome.exe
None of that works. The only way for me to force WebStorm to launch Chrome is to set Chrome as the system default browser, which I don't want to do. Chrome is good as a dev tool, but - to me at least - it's a suboptimal browser.
Please sign in to leave a comment.
When does WebStorm run IE? On what action?
When debugging JavaScript (using javaScript Debug run configuration), Chrome is run always, regardless of your browsers settings. 'View/Open in browser/Default' uses the browser set as default in Settings/Tools/Web Browsers.
BTW, I also have IE set as default system browser, and used Chrome as default for WebStorm. Here are my settings
This happens with a Gulp running config. I haven't debugged JavaScript before with WebStorm, but I just tried creating a JavaScript run configuration. It has a choice of the browser that's based on the browser settings - it lists whatever the default browser you have set up there, plus a choice for Chrome, and you can launch the browsers settings dialog directly from there.
However, our application uses Gulp to serve pages, and when a page is launched by the script, it always seems to come up with the system browser on your machine.
Attachment(s):
webstorm.PNG
Browser run from Gulp doesn't depend on WebStorm settings - this can't be controlled by IDE, as the script is executed by Gulp, not by WebStorm. But you can modify your script to run a browser of your choice - see https://github.com/stevelacy/gulp-open, for example
Thank you! I'll try this out!