安装 SideBarEnhancements 然后通过ctrl + k, ctrl + b打开侧边栏,在侧边栏的文件中右击,找到 open width -> edit applications 然后在这里边设置firefox打开的方式。 9 {0 G. m( A ~4 |. c6 L. k, C
application : 路径要修改为自己默认安装的路径。1 t2 z" _2 c0 R+ q# O
- [, w" s- O9 F+ ?8 y& W: G
- {"id": "side-bar-files-open-with",
7 B' I4 M' l, u% o - "children":, f9 N9 d6 o) o6 f+ D
- [1 ]4 z5 Y, a. z! M2 c# X/ w1 z
- //application firefox
S0 u/ c& e) K3 g0 k/ ]4 R - {
+ a8 h: ~0 C* i$ e$ H - "caption": "firefox",
; M& d" J3 q- L( {, |$ c# L - "id": "side-bar-files-open-with-firefox",- p% `3 X+ y$ v5 C5 W/ }) s
- 4 x6 Q! L0 o3 `7 q
- "command": "side_bar_files_open_with",+ F0 x9 d" E+ j
- "args": {
$ b7 ~% } Q' \ w7 k - "paths": [],' _5 v5 B6 a3 i
- "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",6 V9 [ j3 z0 ^! S) u1 M8 ]
- "extensions":".*" //any file with extension [5 L7 Y1 K( n# C1 t: r
- }6 A( j" Z0 \6 P+ C+ a; J, [
- },, \" ]* @0 G0 Y
- . _# k% |0 g% }! D; ?5 N3 [
- {"caption":"-"},
$ x. J4 @: P, Z0 o8 A+ P/ A1 o - {
/ l: _; c! m* j - "caption": "chrome",9 S" C) d* w3 N( X* l9 h
- "id": "side-bar-files-open-with-chrome",- X: x. ]& W1 o" u* Q) Q( P4 }6 x1 V& m
- , {' g7 u; }" A& P; \6 Q! G- W7 V
- "command": "side_bar_files_open_with",
D' G8 J5 |% T2 A - "args": { n& }6 m) Q( W1 F9 Q8 u% I" b8 a5 a( y
- "paths": [],
5 y* H7 \. t( v/ `' g' Z- m* V - "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
a7 c1 A( N, V - "extensions":".*" //any file with extension
; y4 p5 p) c1 i- Y - }
3 o; O+ v5 s x I" W; j' I - }5 r/ Y' Q6 A6 Y2 T' `/ s
- ]/ R! b8 e5 p2 M7 t7 F3 ~) ~
- }
- s+ ~5 p( `* F - ]
复制代码 配置在IE中打开Key bindings -> User
, h5 q+ s$ R9 @ z$ w- [4 G5 G* g. C5 F4 C8 Y) M2 u
- { "keys": ["ctrl+shift+c"], "command": "copy_path" },
4 U" s% }& R" O7 x - { "keys": ["alt+f12"], "command": "open_in_browser" },
6 O0 p) h/ H' E; @" p - { "keys": ["f12"], "command": "side_bar_files_open_with",
5 W+ }: q3 V8 v' J# r6 s d: ^/ x - "args": {* d: Q g' F/ }
- "paths": [],
# z n* i: {2 }- k4 e - "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",
4 r/ D) E( L; B - "extensions":".*" //any file with extension9 c3 p: R4 d4 o& }) t4 c
- } },
: P+ z' ~1 w/ p1 z9 C - { "keys": ["ctrl+f12"], "command": "side_bar_files_open_with",
) ^+ R' e7 q* U0 m/ ^+ ? - "args": {
6 Y( P6 T# P& `2 d9 F/ n2 { - "paths": [],. \9 ^1 q: A# l
- "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
8 y$ h5 T3 A& B5 u3 j - "extensions":".*" //any file with extension F W4 ]+ x# w
- }
: r8 U9 K& d. C - } / D9 i$ O3 T# B2 b& W ` R7 N$ Q
- % H6 i, X* G U5 f* x' g- D$ R. Y
- ]
复制代码如果是其它浏览器,可以 ctrl+shift+c 路径,然后直接在地址栏粘贴。
& |( i, V- O2 ]. C& D! _$ c 这样就可以用这三个键在浏览中预览页面了: F12 : Firefox alt + F12 : IE ctrl + F12 : chrome 当然,你也可以配置,其它配置器用这样的方式预览。
+ t1 _' ?4 t4 Y, N. a3 A) ]
$ p a5 X W; x0 X6 ]
# b( ?% Q' M) P- w7 w/ g/ G |