安装 SideBarEnhancements 然后通过ctrl + k, ctrl + b打开侧边栏,在侧边栏的文件中右击,找到 open width -> edit applications 然后在这里边设置firefox打开的方式。
- ^$ H( o: w M# e4 L# C0 capplication : 路径要修改为自己默认安装的路径。
" C& c; a- d/ `, R8 S5 W8 c- [ S2 J0 Q* Q+ c( w8 M N( X: O
- {"id": "side-bar-files-open-with",9 d( _8 O) d) k' C( n3 u+ w4 x# Q
- "children":
( i! j( p* ]6 l7 i2 T - [) m5 x" L6 q$ i/ @1 ^1 }
- //application firefox- i6 T! _' i- c& @0 i/ e
- {
* V! y7 q! F1 s& q- C+ G, M- v - "caption": "firefox",
3 A$ k+ d- t' T0 \9 l - "id": "side-bar-files-open-with-firefox",! l. T2 c; X' k; g; T9 Z/ k
7 s5 k+ C, `' E$ ~# j. U( L; b) _- "command": "side_bar_files_open_with",5 L/ Y" q7 l' g' y# C1 K, `
- "args": {
7 R3 v# Y6 E+ L4 n! I! {0 U2 D - "paths": [],, Q9 v r% l$ l
- "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",) E; S L( n' M, d( Q, w) P. Z
- "extensions":".*" //any file with extension
/ c; C6 O: v, o7 N5 n - }. O# D+ H$ c" Z9 b1 m& Q" f
- }, _2 e/ a. p {$ K$ f$ a& z
- : h# _. \. m. U$ K6 Q |
- {"caption":"-"},
- G4 G9 E: {9 f& `7 O* A - {; ^; N1 H. U# {, C) h! k
- "caption": "chrome",
6 a: e2 V+ f# r1 k- U3 x - "id": "side-bar-files-open-with-chrome",
* ~ l+ z6 V( }9 a
; H" o) b/ u: _2 K, U- z3 I- "command": "side_bar_files_open_with",4 v# C( I. N. v8 f
- "args": {; Z" X! @+ c1 m
- "paths": [],4 Z9 _- {3 x% i6 @1 E! {1 M
- "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",2 \9 M H1 V% A3 _( a2 ?: K
- "extensions":".*" //any file with extension
4 d S; O( X- {/ V6 o$ i: n: r - }+ v* K, X$ B9 L9 s
- }- j+ V) S+ ^" H$ ]0 a _' L
- ] U; t9 ~! a+ |5 Z7 A& m1 c* C
- }- r/ }4 Z3 L/ u
- ]
复制代码 配置在IE中打开Key bindings -> User9 M s5 K8 p- v, ^2 w1 A V/ C
- [" H( s, w! {7 ~
- { "keys": ["ctrl+shift+c"], "command": "copy_path" },- l" T9 g& j7 t) `3 ?
- { "keys": ["alt+f12"], "command": "open_in_browser" },2 m8 S9 U: l2 c" E* A0 Q" e. q
- { "keys": ["f12"], "command": "side_bar_files_open_with",) s7 Q9 X) S. V7 a
- "args": {
- H( B# p( f, Z0 G' a - "paths": [],9 q$ s' l5 m; F# F% s) B! i
- "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",2 `, K" C7 ~# ~6 d
- "extensions":".*" //any file with extension- W$ ?* @ c9 M8 n% ?# x3 _( T: w
- } },
- M* t; j; y N& R0 r5 r - { "keys": ["ctrl+f12"], "command": "side_bar_files_open_with",
* u6 Z* q H) ?( ^5 u. D. S - "args": {1 F Z8 T+ t/ J+ `1 z6 F9 x, }
- "paths": [],* u1 Q: D' g( p2 X C8 C& {
- "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
& Z8 j# B$ H5 }& L( k n - "extensions":".*" //any file with extension
$ ]& i+ K' l' j+ i; B - }
+ q- j4 X( d9 U/ `8 I - }
4 U+ V4 q Y/ \8 C7 {$ I -
+ x3 Q6 q" e" B% b9 z/ X0 v - ]
复制代码如果是其它浏览器,可以 ctrl+shift+c 路径,然后直接在地址栏粘贴。% O- F& ?# n; B. E, Z7 G
这样就可以用这三个键在浏览中预览页面了: F12 : Firefox alt + F12 : IE ctrl + F12 : chrome 当然,你也可以配置,其它配置器用这样的方式预览。 - |6 X1 D6 T# t2 U! q/ I c, Y+ n1 Y
3 A8 ^% D( S, p# \
+ N" s# l; x# s
|