安装 SideBarEnhancements 然后通过ctrl + k, ctrl + b打开侧边栏,在侧边栏的文件中右击,找到 open width -> edit applications 然后在这里边设置firefox打开的方式。
" m. R! j+ W" Q% _' wapplication : 路径要修改为自己默认安装的路径。
; k( d1 f7 D% T# @4 E- [+ i! L2 h$ z3 o R) n/ @% [% h
- {"id": "side-bar-files-open-with",7 h( Z, R) f p0 ]5 O
- "children":
, X/ \% ~" \2 S+ h4 P; X - [7 y4 O; y4 B# |! @) s
- //application firefox# [) D- l% Z, x9 _- J4 w- Q8 A# A
- {
0 v5 o R6 }$ R/ M7 h& q - "caption": "firefox",' R" G7 G& b" Q J
- "id": "side-bar-files-open-with-firefox",
: N1 I! Q/ L2 ]* ^, C - H, }, f) J* }& v2 o
- "command": "side_bar_files_open_with",8 b% k; t& U3 S+ r! x# K2 M
- "args": {
_' x* s" R$ s" X% g - "paths": [],, l. L4 G- D" }. N7 G
- "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",
% R. i1 T/ @2 a' p' K" f - "extensions":".*" //any file with extension
, a3 E* E9 D" f - }, {6 @6 U( @* U8 `
- },- s9 x1 V& ?3 p, @
- 5 z- G( F. n7 p% Y4 u$ C
- {"caption":"-"},
; ~$ @+ b' ?1 a/ s - {/ I: ~ q$ X9 ~6 N) T; j
- "caption": "chrome",. f, j3 x9 C4 w) n7 j0 [* M& m
- "id": "side-bar-files-open-with-chrome",' } U) H0 }2 M0 j% [0 u" V6 }3 D
$ v* Q" T: j2 k! C; L; L- "command": "side_bar_files_open_with",
9 y* a, i1 w6 U0 \8 v% f - "args": {
4 @( B6 p9 [5 S# _& b - "paths": [],9 o* D8 V! N, X" f
- "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",8 e' }1 k" a0 P* r4 h, O- P
- "extensions":".*" //any file with extension5 l! {! m0 N. x4 D' t0 M q& N
- }
: y* v, `' m2 @7 A - }
- W. ]2 O" r3 L+ R/ A - ] j8 `: j- k2 g/ u) D
- }
8 {1 D t9 s1 q2 D; d1 \# q - ]
复制代码 配置在IE中打开Key bindings -> User
+ ^, c5 `8 s+ ]; Q8 G- [
' R# i5 O7 y& g) `- a - { "keys": ["ctrl+shift+c"], "command": "copy_path" },
9 {4 r( P* ?. }+ p0 N+ ? - { "keys": ["alt+f12"], "command": "open_in_browser" },. O% Y) F, p) e* T% B. A9 ~1 W
- { "keys": ["f12"], "command": "side_bar_files_open_with",; ~) T. L. x+ V* u+ ~
- "args": {
3 b/ n4 k- J( h, p# n6 Z - "paths": [],; w$ L7 A, o; G/ o) L! p* B! D- O! Q3 `
- "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",+ D; P" g8 x- {6 U; v
- "extensions":".*" //any file with extension" S. E f; f% V( @" k
- } },
- B" b% m# y! U& f1 \$ ` - { "keys": ["ctrl+f12"], "command": "side_bar_files_open_with",- W5 x# \: R1 F; D: H0 [6 i
- "args": {
3 j; h {7 [2 |: l% Z - "paths": [],' {! ^- W' C8 O, y, [9 ]: j
- "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
6 ~0 ^! y6 j( r/ B$ ]/ L - "extensions":".*" //any file with extension! q3 w* ^# {8 K. |, k m. q! W. y
- }
0 C3 o6 }2 H/ A3 k% q/ t1 T) s - } : P: f. G8 I( ?
-
( w$ S, R2 g- V - ]
复制代码如果是其它浏览器,可以 ctrl+shift+c 路径,然后直接在地址栏粘贴。, X3 D4 J% @% K% |) A
这样就可以用这三个键在浏览中预览页面了: F12 : Firefox alt + F12 : IE ctrl + F12 : chrome 当然,你也可以配置,其它配置器用这样的方式预览。
. l1 \1 ~$ {$ H$ b7 Y1 V, Z' W' I
" s. H% F2 H w: q' |4 u$ d
% E( l) M: U% t5 B |