Skip to content

ficapy/vscode-extensions-open-in-browser

 
 

Repository files navigation

Open in Browser

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.

open-in-browser.default

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:

Firefox , Chrome , IE and Safari

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:

demo


open in other browsers

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:

demo

TIP

I spend a day doing this and I tested on windows, mac os and ubuntu, if you find any bug, let me know, thanks.

SUPPORT

MacOS, Linux, Windows

Release

1.0.0

add default browser configuration option

add open in other browsers

0.0.3

add open file by right click menu item

fix some bug

0.0.2

add shortcut Alt + B

modify the command on linux...

0.0.1

BASIC SUPPORT...

License

WYGIWYW(What you get is what you want) LICENSE

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%