安装 SideBarEnhancements 然后通过ctrl + k, ctrl + b打开侧边栏,在侧边栏的文件中右击,找到 open width -> edit applications 然后在这里边设置firefox打开的方式。
0 y- q5 }. G# L! tapplication : 路径要修改为自己默认安装的路径。
! q2 `' x8 [( I: U0 k( v- [+ z, L/ x2 u! x
- {"id": "side-bar-files-open-with",7 P4 ?. \" a# U- s& O! x9 g# v; _
- "children":- c5 |: w( W$ y# e, e9 v) h
- [
+ A @! j8 i6 f - //application firefox
2 K, b3 H2 ~5 H$ q+ g$ o - {2 L" b7 q# D* A7 O- D
- "caption": "firefox",
& \/ V1 m: ^1 J - "id": "side-bar-files-open-with-firefox",& Q/ l+ k: t3 o3 j8 X+ S2 q# V
- ; [2 g# h$ h' B
- "command": "side_bar_files_open_with",
3 ~# b& z. ]2 ], i: W) p: @. L - "args": {& v; a U" t* n
- "paths": [],
* i$ E( N3 a7 F - "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",( n! c- q2 Z# `( F+ y; s) }
- "extensions":".*" //any file with extension" M) A9 K8 K2 I6 n9 J0 e6 ?
- }* D3 e; b8 B9 D& Y; w0 f
- },& M( n" @: i8 M6 H4 s% x4 V" ]
- " @1 j! U% A% h' F, l
- {"caption":"-"},( t( z3 l2 d- Y7 [' B! o6 ~
- {% D% g6 u2 }' ]
- "caption": "chrome",
2 A+ N- Y" U u, O6 W - "id": "side-bar-files-open-with-chrome",
( j; _9 `% M" k/ Z+ J. K) W# l, |
) Y7 e) E7 Z0 o8 r3 P- "command": "side_bar_files_open_with",) t8 f) T' U) `! M, a4 o2 M3 C, R
- "args": {1 G- o' S$ `! z0 o( k% n
- "paths": [],
7 k3 u. j D! h, _% P - "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",/ L# Y5 e# r3 J1 N: h k
- "extensions":".*" //any file with extension
) T9 \# i2 O! Z5 U - }! ~. R& ^9 ~. }1 R& \4 z- A) y
- }
- M) y" A- U; y - ]! t$ @9 ^9 P9 C! @1 a+ g
- }
( b5 Y1 \3 @) a; h" }' y - ]
复制代码 配置在IE中打开Key bindings -> User
/ h+ d, g$ ~5 N* b/ O7 T* m- [
& \; e \. ~% Z' ^9 x4 q - { "keys": ["ctrl+shift+c"], "command": "copy_path" },9 p" E" v2 |% E7 [
- { "keys": ["alt+f12"], "command": "open_in_browser" },+ W; y5 s4 ]8 N) S) C7 n
- { "keys": ["f12"], "command": "side_bar_files_open_with",2 j' b& J* @3 l# }6 Y
- "args": {
% k( z& n8 @* i% b4 x+ O3 _. b - "paths": [],( I# {" W; t6 g5 U3 \% R% {/ R2 V
- "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",/ _) [9 f8 d, l1 @
- "extensions":".*" //any file with extension
p2 [" {+ l0 X: O: a, C, ]) t1 K - } },: F! ]* }; v3 N* V. G
- { "keys": ["ctrl+f12"], "command": "side_bar_files_open_with",
' _ S7 d& N. i% g. o3 }2 Y/ w4 k - "args": {4 _; G5 G1 [2 `. j7 e# g' L
- "paths": [],5 W7 C0 R( `/ @( _/ y
- "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
( G. ]% F) x& t/ { - "extensions":".*" //any file with extension' c }1 o$ v, j W
- } ) y, g1 M5 m l+ j7 I( W
- } # X, V: X0 Y6 U* m/ f0 Q
-
- m5 t+ P5 B/ {, E5 ~" } - ]
复制代码如果是其它浏览器,可以 ctrl+shift+c 路径,然后直接在地址栏粘贴。' l5 b0 R( G- s4 ^+ E
这样就可以用这三个键在浏览中预览页面了: F12 : Firefox alt + F12 : IE ctrl + F12 : chrome 当然,你也可以配置,其它配置器用这样的方式预览。 7 w/ ^: k" O1 x g; q( \
1 l# j" w) g7 n7 p6 a7 e3 T1 O$ M: C4 x9 z6 d5 _% V& V
|