安装 SideBarEnhancements 然后通过ctrl + k, ctrl + b打开侧边栏,在侧边栏的文件中右击,找到 open width -> edit applications 然后在这里边设置firefox打开的方式。
% j1 X3 ?) J! U e, dapplication : 路径要修改为自己默认安装的路径。 |7 X- N" h+ O5 k
- [
) t9 ?0 r. S2 A( F - {"id": "side-bar-files-open-with",
$ v4 V+ f% U: M" F9 L% c! T8 X% V9 p - "children":" v; g( @) ?5 A) \, I1 F# W. ^" ?
- [
0 M7 ]% W9 q! ^- x" u6 e - //application firefox% E$ j R! f8 S- B9 p2 D1 [0 t
- {
* H5 @, k( Q' e" f - "caption": "firefox",% i0 V1 L9 r& O/ o' c
- "id": "side-bar-files-open-with-firefox",8 ?: f1 S. f. I1 R2 d
) a+ j4 s3 Z# p& u/ i- y- "command": "side_bar_files_open_with",6 e/ N3 Q( u _
- "args": {
& [; h4 ^0 p9 s- b9 E. e: [ - "paths": [],3 }+ c( F3 t, V. Z
- "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",
. H: H; _4 L9 B! k( ]- v/ i - "extensions":".*" //any file with extension
]% Z4 z/ e* Z0 r% Z - }2 _5 G( }4 X+ i
- },
4 J0 N# h3 K# d" U! G
9 t. d9 i4 W3 ^9 H7 e+ f8 d& m& ?" {- {"caption":"-"}, x! ^, ?/ p7 Z
- {
* Q5 f) I8 k7 V. I% u9 M7 a: K: u3 | - "caption": "chrome",0 s) y# o8 R5 d( P
- "id": "side-bar-files-open-with-chrome"," p; {& |3 }# Z, t- [2 R
/ n" }' K L* b8 R$ |8 d. Q- "command": "side_bar_files_open_with",0 i& ~* l3 J j4 ?, W
- "args": {
) k: @. S( I: i i8 Q - "paths": [],
, j% n7 R6 ^/ r3 v8 q( w - "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",$ h" u6 Z8 T3 Q, E. s5 @
- "extensions":".*" //any file with extension
/ O& y- Q& \8 M9 I2 Z- I4 n - }
& D" m$ F0 g% v5 I8 q - }
' T# n5 P$ }& |! A0 ~, D - ]
0 f I7 i/ A0 c5 M$ W - }( u3 y4 r) b& p h% Y3 c
- ]
复制代码 配置在IE中打开Key bindings -> User
1 Q# @: K2 @# ]; t( k+ I- [
5 i; H6 ^' [+ i' x3 H& o - { "keys": ["ctrl+shift+c"], "command": "copy_path" },
! t0 t$ J* Z% x# `2 s. o2 j" [ - { "keys": ["alt+f12"], "command": "open_in_browser" },
8 I N7 K5 T. V# @+ r v - { "keys": ["f12"], "command": "side_bar_files_open_with",) _. N; r0 A/ e" Q
- "args": {
2 L: p4 v% M+ [ - "paths": [],
3 G0 F4 z8 o- ~6 H - "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",) |8 j/ {, v% m8 K+ c1 B8 R( f: `
- "extensions":".*" //any file with extension
b' x5 h5 p! Q# R9 ` - } },
" y0 k) [- H" _' z4 x - { "keys": ["ctrl+f12"], "command": "side_bar_files_open_with",
; o! M' W8 e! h1 E4 y; s( y/ [: f - "args": {- Y8 k- k( R H9 q! U
- "paths": [],
3 ]/ k* n' G- C; A! x4 y - "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
! {1 F& Y. I& D9 i4 \ - "extensions":".*" //any file with extension; L/ C# J8 p* w+ N6 L
- } % M* s; k. W% j8 M
- }
8 K* U6 V- l& a& Q* a2 M; r - 9 f5 }" d, A4 w) _6 F# X: u
- ]
复制代码如果是其它浏览器,可以 ctrl+shift+c 路径,然后直接在地址栏粘贴。
$ d# `/ O! i+ F& W# J. v( }+ F 这样就可以用这三个键在浏览中预览页面了: F12 : Firefox alt + F12 : IE ctrl + F12 : chrome 当然,你也可以配置,其它配置器用这样的方式预览。 ' U3 P, ?# n- Q% n( c
% c/ r- a4 s- L) y7 O' }4 n% Z
4 E, ?+ i& _0 h0 T# v |