|
1 | 1 | # Open in Browser
|
2 | 2 |
|
3 |
| -终于,现在,你们可以自由的指定你们想打开的浏览器了! |
| 3 | +Finally, you can open html pages with browsers you specified. |
4 | 4 |
|
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 | + |
| 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 | + |
6 | 40 |
|
7 | 41 | 有很多时候,我们出于方便,使用一种浏览器,但是,开发调试的时候我们更愿意使用另一种浏览器。
|
8 | 42 | 比如我,我平时使用firefox作为系统的默认浏览器,但是我开发调试的时候更喜欢使用chrome,然而这时我使用open-in-browser时,它打开的是系统的默认浏览器,即firefox。这就很不方便。
|
9 | 43 |
|
10 | 44 | 为了解决这个问题,我添加了'default'这个配置选项,这个选项将成为'open-in-browser默认打开的浏览器',也就说,这个值和系统的默认浏览器是不冲突的,我的系统默认是firefox,然而,如果我把default配置成chrome,那么在使用open-in-default的时候,将默认打开chrome!
|
11 | 45 |
|
12 |
| -可选的值也相对比较宽松: |
| 46 | +可选的值也相对比较宽松: |
13 | 47 |
|
14 |
| -chrome: [ 'chrome', 'google chrome', 'gc', '谷歌浏览器' ] |
| 48 | +chrome: [ 'chrome', 'google chrome', 'google-chrome', 'gc', '谷歌浏览器' ] |
15 | 49 |
|
16 | 50 | firefox: [ 'firefox', 'ff', 'mozilla firefox', '火狐浏览器' ]
|
17 | 51 |
|
|
0 commit comments