Finally, you can open html pages with browsers you specified.
Usually, I use Firefox browser for convenience, however, I prefer to use Chrome browser when I debugging my html pages. In previous versions, I can not get it. But now, we can.
In this version, I add a "open-in-browser.default" configuration option. You can set the value to the name of your favorite browser. if the value is correct and not empty, when you open the browser directly through the shortcut keys, it will open the browser that you specified, rather than the system default browser.
For some reason, acceptable browsers are as follows:
there is no opera
because i never used it, if needed, i will add it in the future.
You do not need to set a very accurate value, only if the value in the array, I will handle it:
chrome browser acceptable values:
[ 'chrome', 'google chrome', 'google-chrome', 'gc', '谷歌浏览器' ]
firefox browser acceptable values:
[ 'firefox', 'ff', 'mozilla firefox', '火狐浏览器' ]
ie browser acceptable values:
[ 'ie', 'iexplore' ]
safari browser acceptable values:
[ 'safari' ]
if you do not know how to do, see the gif below:
This is not enough, now, you can open html pages in other browsers.
when you right click, you may find a new item "open in other browsers
", if you click it, you will get a browsers list, then you can choose one to open this page.
of course, you can also get it with shortcut Alt+Shift+B
see the demonstration gif:
I spend a day doing this and I tested on windows, mac os and ubuntu, if you find any bug, let me know, thanks.
MacOS, Linux, Windows
add default browser
configuration option
add open in other browsers
add open file by right click menu item
fix some bug
add shortcut Alt + B
modify the command on linux...
BASIC SUPPORT...
WYGIWYW(What you get is what you want) LICENSE