安装 SideBarEnhancements 然后通过ctrl + k, ctrl + b打开侧边栏,在侧边栏的文件中右击,找到 open width -> edit applications 然后在这里边设置firefox打开的方式。 % S! [: Z. I$ P" |1 m
application : 路径要修改为自己默认安装的路径。
& g( B! a- ?; Q2 g- [
& Y" T* n9 l' M! K) t; | - {"id": "side-bar-files-open-with",% X% a7 U0 Q* p8 {: T/ f
- "children":
! b* t: W0 n4 z- Q" w& K - [- M' o/ l+ [8 A: v/ \8 j
- //application firefox/ H5 S& L, C! J# t' n
- {
( V% @4 f' o2 U9 @* O/ v - "caption": "firefox",
/ b/ t! B' x: A; {8 \ - "id": "side-bar-files-open-with-firefox",# L, P/ b* O l/ j, n6 ~8 e8 o
0 U$ b7 U' V$ ` f% @' y9 D! V8 n- "command": "side_bar_files_open_with",! p9 W0 ]* x8 r6 O
- "args": {
. |; u) s, { L9 l, G - "paths": [],
$ c2 q) m: Y& u - "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",6 w: _; t# v A6 f
- "extensions":".*" //any file with extension
- n! w. h7 Z+ ]) V7 }* E8 H - }
5 j. |$ v/ c/ @3 F$ t8 y3 [; h - },( v, `4 ^& h' u
- 6 m, z5 c' i% `$ T+ J! i
- {"caption":"-"},7 z6 q: p$ M1 l8 l8 d' y
- {
. f4 F9 ]/ t' `; w1 ~- k: q - "caption": "chrome",
' _: _ n2 Q+ L- i; ] - "id": "side-bar-files-open-with-chrome",
/ p+ R1 Y6 ]3 k4 y1 V- J$ V
: |0 S# I1 L( `- "command": "side_bar_files_open_with",( Y. W1 _/ H7 ^. a1 M
- "args": {8 ~5 b. ?' m- H1 c) ]- L$ p
- "paths": [],9 m# v' q/ d9 o! d9 s: L( X( h
- "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
) i$ [9 ^, R& J - "extensions":".*" //any file with extension! z6 N* D9 Q% D; J' r
- }
$ `& i% a) X( E S9 k - }
: R4 a1 s+ ]5 w+ s - ]' d" s1 R) E, T5 R% y8 ~
- }
5 {; N; z" V* N \. g - ]
复制代码 配置在IE中打开Key bindings -> User
5 y. X% D" g+ V P. l9 ]- [7 [ a X/ ]& z9 h4 _
- { "keys": ["ctrl+shift+c"], "command": "copy_path" },8 L3 _) H; ]& f8 l
- { "keys": ["alt+f12"], "command": "open_in_browser" },
5 K' T, G# T9 M' K - { "keys": ["f12"], "command": "side_bar_files_open_with",) r3 h2 M8 n: `2 {
- "args": {
t* _" Z" _' e k. P - "paths": [],
! a: s5 U$ z' H# S - "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",
+ K& M7 B* R7 f; V S. I. f - "extensions":".*" //any file with extension. B% Z! Y+ i% W- ]/ [4 B% e
- } },
. x# _$ F( e9 R9 M - { "keys": ["ctrl+f12"], "command": "side_bar_files_open_with",# z5 Q% u( o8 T0 n( t/ T- D
- "args": {
2 I% y' r( {1 P7 b) H- @& f, p - "paths": [],
9 m5 U9 }9 E9 W5 M- I$ N - "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
+ O$ J2 h v5 C& C* Q# M# c A - "extensions":".*" //any file with extension
n J: h u' Y1 y - }
8 ?$ r7 O2 M1 i! Q& b - } / B6 N5 d9 x8 h+ v1 `" @9 I3 o
-
* _2 Z" [4 Z. p, @' o/ k) c9 b+ u - ]
复制代码如果是其它浏览器,可以 ctrl+shift+c 路径,然后直接在地址栏粘贴。4 Z% j& c7 _. L5 K' \
这样就可以用这三个键在浏览中预览页面了: F12 : Firefox alt + F12 : IE ctrl + F12 : chrome 当然,你也可以配置,其它配置器用这样的方式预览。 n7 L- w" R6 H: f
y/ L/ u S+ \5 }
. s7 ~" ]- h/ u7 e, s& i( Y |