安装 SideBarEnhancements 然后通过ctrl + k, ctrl + b打开侧边栏,在侧边栏的文件中右击,找到 open width -> edit applications 然后在这里边设置firefox打开的方式。
$ k( t% X7 v/ ]0 I0 u( v( Aapplication : 路径要修改为自己默认安装的路径。
2 Y( x) s1 f/ M' m, q" q- [
4 @8 Y# M& @7 R$ @2 s' u - {"id": "side-bar-files-open-with"," p( z% ]' }' ~" ?9 x
- "children":9 T$ i9 ?, S1 c* z
- [4 }4 Z. Y* n6 L/ v
- //application firefox
: \! f8 R {8 F/ c1 h - {$ R% P1 _3 |* Q& i# |
- "caption": "firefox",
) {0 E& i7 O$ O0 i# ^* s( K - "id": "side-bar-files-open-with-firefox",1 E* s1 e- @4 w* ~* ~
l: z, J+ ^( _6 [0 T- "command": "side_bar_files_open_with",0 X6 o) R! b: {- `( I
- "args": {4 t& k* d& o6 m- y/ k
- "paths": [],. ]( l. Q0 B) A+ s1 v: o
- "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",
, h7 K1 b( E# l3 A* [* d* Y7 n - "extensions":".*" //any file with extension' t$ F7 ?* q& P' {0 d* f
- }
3 `( u. v1 R2 X( a% j - },
( [, o' H& W4 S, V - & L6 }* b2 {: I/ `4 h
- {"caption":"-"},
3 z9 n7 S. `1 e1 d. J( v- U - {
% f! ]# V3 k( H% `; P2 B/ | - "caption": "chrome",6 @9 h( O: J* b3 ?8 r: j% ~4 W
- "id": "side-bar-files-open-with-chrome",
, U y2 r- c$ i5 M' F
" U9 A% ^! M% i- ^" w D% B( [- "command": "side_bar_files_open_with",8 Y& k# u' {8 v: A" q
- "args": {' m0 f* U1 r! |* I6 j# `4 t
- "paths": [],
+ g+ J: z% l7 ?1 D( C - "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
' a6 m. {& y6 B# h. b: v5 S; b - "extensions":".*" //any file with extension
2 b% |( ] C" E! ]' K - }
9 y- s* K { `% g7 E8 j9 \1 n - }# w5 i/ Q) g: c7 X) B
- ]
+ ~; t& q( y$ h' h4 v - }
# `! z' V" Q4 J& }* z - ]
复制代码 配置在IE中打开Key bindings -> User9 o% i& r1 n- V: O
- [$ @/ q. X7 E( m
- { "keys": ["ctrl+shift+c"], "command": "copy_path" },; g3 n8 V2 ]' F3 Y+ B, d: H& L$ i
- { "keys": ["alt+f12"], "command": "open_in_browser" },
6 @' [7 {6 b0 j7 H1 j5 f$ L( \0 F - { "keys": ["f12"], "command": "side_bar_files_open_with",' n$ k! M9 {& e( V/ ]: c$ L
- "args": {
) t5 {) \8 C) } - "paths": [],
" W" N1 ?) j: M- X* H3 n, E& q - "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",* d i/ x2 }0 |4 c$ I6 c; |
- "extensions":".*" //any file with extension! P! }: Q) j9 ^! P$ |/ D3 s4 W
- } },/ s, Y7 t: ]$ B- {% `) {
- { "keys": ["ctrl+f12"], "command": "side_bar_files_open_with",$ u& ?- V" x) p) f6 f$ Y
- "args": {
( d ^% s5 ^& l$ i - "paths": [],
5 e) Y9 [" z+ S3 k, q6 o- I - "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
5 ~) b% F) c( c( E3 y" y* _! l! l - "extensions":".*" //any file with extension
* v) x- t, V! {# _8 D# W - }
+ _3 A7 z* y, B - }
( S, F0 J' b7 ]7 L4 _! A5 r -
9 _/ `$ h# b" n3 T! z& J$ U5 x - ]
复制代码如果是其它浏览器,可以 ctrl+shift+c 路径,然后直接在地址栏粘贴。7 r3 y4 P7 W8 F& ]6 f
这样就可以用这三个键在浏览中预览页面了: F12 : Firefox alt + F12 : IE ctrl + F12 : chrome 当然,你也可以配置,其它配置器用这样的方式预览。
' e5 J0 ?. {7 K4 g- D; F
2 J9 ] Z3 _4 L2 u5 h) m6 l2 u; d/ u! }7 G/ X! [: r
|