安装 SideBarEnhancements 然后通过ctrl + k, ctrl + b打开侧边栏,在侧边栏的文件中右击,找到 open width -> edit applications 然后在这里边设置firefox打开的方式。 ) Q# ^1 t4 b# z$ K
application : 路径要修改为自己默认安装的路径。. Q7 s; Q4 q: H- I
- [" E9 Z4 x4 M. P, P" I: g1 |& Z
- {"id": "side-bar-files-open-with",0 }/ @- O) P0 }# m; @+ I8 C" ]
- "children":: j' W# Q" p8 T, |7 C' S$ N G
- [. N" J/ O+ ] q% z3 D3 |* ~
- //application firefox( p1 [' q; v# p& J. {3 c; r& G
- {' a: o* E! p/ X* w1 d% T
- "caption": "firefox",! } Q) Q- e3 H1 z$ V; T+ u2 h3 K
- "id": "side-bar-files-open-with-firefox",/ y6 K6 R+ ]# F$ G
* l1 p+ R+ i; }4 j' P- "command": "side_bar_files_open_with",8 ? e# h, X; t( z) a! O% L
- "args": {7 G. f* C& H V8 R2 [
- "paths": [],, U' i3 v2 U' V; W& g
- "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",
* ^* F( S& z2 p2 Q/ y) z - "extensions":".*" //any file with extension: j& q( T0 M6 V9 B( n
- }
3 u0 u; k C' F. E2 K( V8 r - },
8 ` S/ I9 a( `, u - ' O4 F% b5 A* T- T& v' }4 Y
- {"caption":"-"},; F6 C* p. U. A0 D! ~
- {
. `- N: F7 U9 C3 b - "caption": "chrome",* s# [4 o' {5 v+ V
- "id": "side-bar-files-open-with-chrome",
]0 G% C% I+ c8 Y0 ^" F& O4 q
3 [: j# e' {* p8 I' _) v, t1 t% [- "command": "side_bar_files_open_with",
9 J3 z* q8 u# e: p, Z - "args": {! G+ X7 w# n, I: G) Z4 [% m
- "paths": [],
# V; k; {1 V) ? u1 D5 ?0 x - "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",+ ?- i# C% R# t% F* A9 K( h
- "extensions":".*" //any file with extension
' X, P1 u, ]$ K! B7 W% c - }
* U7 c0 @$ o% H& |- h% x - }
- w3 E+ f, z* z- L, }9 d: ~- N - ]
* }0 K6 |: }. F, Y* n( n - }$ l3 d v5 M+ e& G# h
- ]
复制代码 配置在IE中打开Key bindings -> User0 c! L! g3 x1 i- W
- [+ @* X' f* `1 `3 S" Z {1 s6 I3 u
- { "keys": ["ctrl+shift+c"], "command": "copy_path" },0 P5 J) f, u: f* C0 }& B1 h- ]
- { "keys": ["alt+f12"], "command": "open_in_browser" },6 Y$ C) _7 |3 P
- { "keys": ["f12"], "command": "side_bar_files_open_with",% V; G" M& d2 U
- "args": {
4 \/ ^* [* ]$ @) ?6 j$ e - "paths": [],
$ x! S. }9 m- h - "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",
# x6 U* I2 D2 x2 N: C) E- w h - "extensions":".*" //any file with extension5 b& J7 y$ N: x9 m1 c+ q8 M
- } },$ U+ D7 [! M: `# {
- { "keys": ["ctrl+f12"], "command": "side_bar_files_open_with",
+ z* t' e' }, o6 O2 F0 X, w% i! M4 B+ i: D - "args": {. s; b/ s$ c: X# `
- "paths": [],
, c# ?0 w. i% T/ W - "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
6 w5 C A1 Q+ o9 `! c3 w - "extensions":".*" //any file with extension/ d/ w' A" \9 M' r4 k
- } ! ~. M# Y% v1 ?9 m4 m- d1 h% _
- } $ x+ [7 r% z$ _( }: _/ k
-
! y, [! W( A) ^. p3 X- Q! U8 r - ]
复制代码如果是其它浏览器,可以 ctrl+shift+c 路径,然后直接在地址栏粘贴。4 e2 M$ @/ D" f) W! N' W
这样就可以用这三个键在浏览中预览页面了: F12 : Firefox alt + F12 : IE ctrl + F12 : chrome 当然,你也可以配置,其它配置器用这样的方式预览。 7 L! Q$ z6 I8 Y# G/ B0 w
: }6 j% E# \; E, A( O6 Z& ?' `+ u3 T
|