安装 SideBarEnhancements 然后通过ctrl + k, ctrl + b打开侧边栏,在侧边栏的文件中右击,找到 open width -> edit applications 然后在这里边设置firefox打开的方式。
% ?9 z1 V9 V3 A* X" [$ dapplication : 路径要修改为自己默认安装的路径。/ t8 u* t, e( r& }
- [
4 I1 s/ L7 `0 `/ j. S. k1 h - {"id": "side-bar-files-open-with",
4 B }& D; V) ~6 n2 j s - "children":9 C9 K/ I7 }" I6 h% N1 G7 b3 p
- [
9 F6 F: L9 ^8 z7 c' z% J% J - //application firefox
7 m) d0 v/ F9 s" E R7 {. g - {6 N1 i% S' Z; V9 F3 R! ^, x
- "caption": "firefox",4 ]7 U+ K) P: |; Y
- "id": "side-bar-files-open-with-firefox",7 `+ e& j! A8 f* t: ? a9 g
- % \4 X3 @; _; o
- "command": "side_bar_files_open_with",
2 B6 o' v1 M1 `' f! F6 w4 ` - "args": {
# T. K e: i: t - "paths": [],
$ _8 {0 O. L. q( P% J9 e& A$ C1 P' o - "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",
1 g2 x# D8 A: W# l5 [8 V# n2 x - "extensions":".*" //any file with extension! h3 [4 r( j' {0 S2 @
- }
1 L% ?0 V u/ d/ a5 Q& O# A) f - },
& ]# u# {; ?+ x; S- D - + M0 A4 r* s) O* T1 J: n
- {"caption":"-"}," d6 ?5 b" a1 ^: n- C' r" ^
- {3 \; B" K( i( `$ w
- "caption": "chrome",9 M/ _6 E1 ~: W' p5 F# I9 W
- "id": "side-bar-files-open-with-chrome",1 ], t; b, w- \
- 4 e) v! K3 N4 ?. p$ ?
- "command": "side_bar_files_open_with",
4 [) P& d# q; N/ B2 w0 q - "args": {* H$ n' X R% r' |0 ]* y/ W* v. a5 @
- "paths": [],
) }4 Q# ]0 f& x6 L7 e2 w - "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
+ o# S9 E, B9 y& Q4 W; P( Q - "extensions":".*" //any file with extension
! b4 b# D# d. ^ - }
- \: w, h5 D: l' f& o - }! a( z+ l* H: O6 {4 Z; y: A8 f9 y; x
- ]
' P( |8 C$ Z6 E W - }
. \" R# Y* i ~' Y, f+ h- H* y4 A5 s O - ]
复制代码 配置在IE中打开Key bindings -> User$ T" b7 A! S, B% z
- [
; u$ j. [; _1 h2 z - { "keys": ["ctrl+shift+c"], "command": "copy_path" },' j* O ^/ E1 q& [" A
- { "keys": ["alt+f12"], "command": "open_in_browser" },
$ e. t9 l: I& ` - { "keys": ["f12"], "command": "side_bar_files_open_with",/ u' k- z& K3 V- ]( C
- "args": {8 d/ y$ W, p# n, L! L& R3 K j$ a
- "paths": [], H! o9 o( j! r* `* L0 q* @
- "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",
6 R8 I4 j( j& N* P8 A - "extensions":".*" //any file with extension
* }$ Y" {5 w) W) i" k7 q - } },
* u) r' i3 e2 Z: l" K' |/ M - { "keys": ["ctrl+f12"], "command": "side_bar_files_open_with",# b, b+ H+ p$ K! _
- "args": {! K, u, X2 B/ [8 _9 K
- "paths": [],
A, n+ x' u: z: K, ^0 L: a - "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",' |# J- x7 I9 Q! G$ A+ x
- "extensions":".*" //any file with extension
# c3 ^/ a: O! t9 e' ^; [ - } % N( K% x/ r; }4 \! o/ ^0 p
- }
6 g) ^5 k' x( a/ M* p - " @8 J1 d1 _ i
- ]
复制代码如果是其它浏览器,可以 ctrl+shift+c 路径,然后直接在地址栏粘贴。
' s5 p) k* T/ B7 w 这样就可以用这三个键在浏览中预览页面了: F12 : Firefox alt + F12 : IE ctrl + F12 : chrome 当然,你也可以配置,其它配置器用这样的方式预览。
, E+ V4 R0 d, J1 X6 W+ \ V# M- S& _
9 e. q7 i2 p' C. |* E |