Skip to content

Commit 01982d6

Browse files
author
techer
committed
readme.md
1 parent 248061c commit 01982d6

File tree

1 file changed

+38
-4
lines changed

1 file changed

+38
-4
lines changed

README.md

+38-4
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,51 @@
11
# Open in Browser
22

3-
终于,现在,你们可以自由的指定你们想打开的浏览器了!
3+
Finally, you can open html pages with browsers you specified.
44

5-
#### 1,加入默认浏览器选项
5+
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.
6+
7+
#### open-in-browser.default
8+
9+
In this version, I add a "open-in-browser.default" configuration option. You can set the value to the name of your favorite browser.
10+
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.
11+
12+
For some reason, acceptable browsers are as follows:
13+
>##### Firefox , Chrome , IE and Safari #####
14+
there is no `opera` because i never used it, if needed, i will add it in the future.array
15+
You do not need to set a very accurate value, only if the value in the array, I will handle it:
16+
>chrome: [ 'chrome', 'google chrome', 'google-chrome', 'gc', '谷歌浏览器' ]
17+
>
18+
>firefox: [ 'firefox', 'ff', 'mozilla firefox', '火狐浏览器' ]
19+
>
20+
>ie: [ 'ie', 'iexplore' ]
21+
>
22+
>safari: [ 'safari' ]
23+
24+
if you do not know how to do, see the gif below:
25+
26+
![demo](http://oiw7043hi.bkt.clouddn.com/demo.gif)
27+
28+
* * *
29+
30+
#### open in other browsers
31+
32+
This is not enough, now, you can open html pages *in other browsers*.
33+
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.
34+
35+
of course, you can also get it with shortcut `Alt+Shift+B`
36+
37+
see the demonstration gif:
38+
39+
![demo](http://oiw7043hi.bkt.clouddn.com/demo.gif)
640

741
有很多时候,我们出于方便,使用一种浏览器,但是,开发调试的时候我们更愿意使用另一种浏览器。
842
比如我,我平时使用firefox作为系统的默认浏览器,但是我开发调试的时候更喜欢使用chrome,然而这时我使用open-in-browser时,它打开的是系统的默认浏览器,即firefox。这就很不方便。
943

1044
为了解决这个问题,我添加了'default'这个配置选项,这个选项将成为'open-in-browser默认打开的浏览器',也就说,这个值和系统的默认浏览器是不冲突的,我的系统默认是firefox,然而,如果我把default配置成chrome,那么在使用open-in-default的时候,将默认打开chrome!
1145

12-
可选的值也相对比较宽松:
46+
可选的值也相对比较宽松:
1347

14-
chrome: [ 'chrome', 'google chrome', 'gc', '谷歌浏览器' ]
48+
chrome: [ 'chrome', 'google chrome', 'google-chrome', 'gc', '谷歌浏览器' ]
1549

1650
firefox: [ 'firefox', 'ff', 'mozilla firefox', '火狐浏览器' ]
1751

0 commit comments

Comments
 (0)