安装 SideBarEnhancements 然后通过ctrl + k, ctrl + b打开侧边栏,在侧边栏的文件中右击,找到 open width -> edit applications 然后在这里边设置firefox打开的方式。
* o* s3 ^* Q/ H: y0 V) V' C+ Capplication : 路径要修改为自己默认安装的路径。
" B/ z5 W$ z, g- [
. H7 B- K$ L8 F- ~ - {"id": "side-bar-files-open-with",6 a& O1 K7 c, g: `! A8 h
- "children":5 J$ } h7 r# K
- [+ w5 N7 f4 w; `4 t
- //application firefox
' J8 }; E4 ^' l3 O, |1 \ - {
( o, \, b7 q" ~4 s - "caption": "firefox",3 ^7 e5 `3 m5 Q# A$ P, R, T6 o0 m
- "id": "side-bar-files-open-with-firefox",% J6 O) h/ |3 ^( A, t8 y9 _- l
0 \0 Z) I$ l6 i- "command": "side_bar_files_open_with",
" C2 P7 O7 W4 S% `' K" p, R - "args": {4 C5 l; v4 i8 X- R
- "paths": [],
" K' R0 S" w3 Q* s, d9 G3 | - "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",+ m# v: W1 f) v5 v4 x: N% T
- "extensions":".*" //any file with extension0 i# o& ~+ V1 U9 o8 @
- }
5 t/ p9 w% |: n' j - },3 Q) \; _2 n$ A: ?
& m. z2 f, d5 u, {7 ] J9 b3 ~- {"caption":"-"},
. c$ m' {" H! ?+ `* N& n - {
& S8 r' d, ]5 A7 Y1 \ - "caption": "chrome",
/ w( g; V: m1 v3 k- Q Y - "id": "side-bar-files-open-with-chrome",6 w) \2 n& L6 R* O* Y2 A
- 1 F9 {% X& G- }3 J: j5 X$ ?9 D% H
- "command": "side_bar_files_open_with",+ m; h# G! g0 l* T; g% E
- "args": {: {* l/ c+ F4 s
- "paths": [],2 s. c3 I t; W* [* W4 G
- "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",) u+ l& e, ?! p) U/ V
- "extensions":".*" //any file with extension7 u/ f( R- D; `" k" V6 g+ N
- }
9 Q+ p8 i# y }2 n9 F - }
' m% m; @; G7 G/ h3 Y - ]
; n Z$ y. T9 E8 [; D6 }$ o - }
+ j5 [* J! b* Q4 j6 i - ]
复制代码 配置在IE中打开Key bindings -> User2 D( T/ Z3 y% H; Q! n, b/ e
- [
& p6 H2 m# F/ r - { "keys": ["ctrl+shift+c"], "command": "copy_path" },/ h) ]' c8 g6 e
- { "keys": ["alt+f12"], "command": "open_in_browser" },+ l2 l. z0 w; H
- { "keys": ["f12"], "command": "side_bar_files_open_with",
* P! s3 b. J u% m! P. O - "args": {
& r0 \0 V5 ]. \6 I* g- s5 W! Q - "paths": [],1 K* }) q1 f4 u) o8 V+ D2 d
- "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",) E+ y! M2 x* o
- "extensions":".*" //any file with extension# g) g3 L( l- K' f" I
- } },
, y7 S8 q* Z1 h) D - { "keys": ["ctrl+f12"], "command": "side_bar_files_open_with",
/ G" m/ n6 |+ \+ x0 z @# j3 A - "args": {
$ j2 B+ O2 t5 u4 L4 X% _ - "paths": [],+ M0 X$ t" D6 m* T1 @
- "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
2 C$ d7 Q0 j1 C. s6 k - "extensions":".*" //any file with extension- l$ r2 W7 d- z K* b) m& i
- }
1 m0 ]' j$ J1 o$ R1 ~6 E - } * I& h2 _: V0 o# K. P/ T
- 9 A' W" z9 I, |4 W( d
- ]
复制代码如果是其它浏览器,可以 ctrl+shift+c 路径,然后直接在地址栏粘贴。2 \6 h! f' t2 e: J
这样就可以用这三个键在浏览中预览页面了: F12 : Firefox alt + F12 : IE ctrl + F12 : chrome 当然,你也可以配置,其它配置器用这样的方式预览。 0 \2 }+ A2 i$ l, W8 Q S. w
7 {2 f, M! m* C5 b9 Q+ u* ~! K9 u2 W+ c) v, l9 ^# V+ b, b- P+ t' L
|