安装 SideBarEnhancements 然后通过ctrl + k, ctrl + b打开侧边栏,在侧边栏的文件中右击,找到 open width -> edit applications 然后在这里边设置firefox打开的方式。
9 W8 _- O) f7 R' g4 Y) Tapplication : 路径要修改为自己默认安装的路径。! b0 \1 R- \) v7 U
- [
: ], `) r, j j - {"id": "side-bar-files-open-with",% @0 M. c8 x9 O* y$ S" F
- "children":; h3 |' H9 G8 N) B! P
- [( ^. ^+ S' o* W3 V2 U9 a, A
- //application firefox
: j+ m' E# {. d/ ^$ F: e - {7 l5 n& H& J7 F* ^8 x
- "caption": "firefox",
) X1 I. c. w, V* L8 H$ i6 h - "id": "side-bar-files-open-with-firefox",
; ?0 a0 r3 j9 n7 K - + H- e8 e" J. J) {
- "command": "side_bar_files_open_with",
% I! ^# o. |% D/ g& H& o - "args": {
/ r" X* V' \/ O0 H1 b - "paths": [],, M$ j- F: m2 J# J* E9 e
- "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",
" }& @* T& P: a; \9 y. v - "extensions":".*" //any file with extension
, s8 N9 b; b9 q: ?' T+ G - }/ T7 K. [5 C- v! m! E
- },4 w( s# w5 u, C5 E. Y, T
- ) T. b J9 k. q# x+ v) Z
- {"caption":"-"},* w7 _- o( U" c+ x
- {( Y& m4 S" A1 z, l& ^5 S
- "caption": "chrome",% Y+ H3 f) u7 i( o
- "id": "side-bar-files-open-with-chrome",# Y; V1 M# Q9 j* d
- 2 K/ M6 A; T2 t
- "command": "side_bar_files_open_with",; e1 ?4 o( N0 t) U Z( Z
- "args": {
/ w! b! q8 K# @4 b u+ p - "paths": [],9 y! \. R1 c' ]2 f- }
- "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
8 x+ Y$ E( j& e - "extensions":".*" //any file with extension
5 Z' I1 }0 b9 P9 y# z- T4 L* u9 w1 v9 ~8 ] - }
( J1 L2 \5 e% K, {. U - }
! p/ B! [" `1 R - ]) z7 U% j" B8 @% w$ m7 C- T0 {
- }
) ^6 a: Q* [0 Z' c* n - ]
复制代码 配置在IE中打开Key bindings -> User
0 e3 N( u% ]0 |% Z! M- [
( ^. d; Q [: ] [& ?0 b, R - { "keys": ["ctrl+shift+c"], "command": "copy_path" },
2 ?" L$ `2 \9 I- _ - { "keys": ["alt+f12"], "command": "open_in_browser" },6 W2 R2 `" C; C
- { "keys": ["f12"], "command": "side_bar_files_open_with",& y6 H/ K9 F8 d, i/ j/ j, a
- "args": {
- q+ u0 s9 _5 @% ^ - "paths": [],- a4 X3 I. r* N
- "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",
/ r' E' y, d# ?1 ~ - "extensions":".*" //any file with extension6 L2 Q: R/ |. g9 g" L0 f
- } },
' H& C# m0 R) B* i6 R+ x! Y8 v - { "keys": ["ctrl+f12"], "command": "side_bar_files_open_with",
/ J9 {+ r X& S. O: P) Z - "args": {
: D5 a3 B) U& c e' R3 d - "paths": [],, n- n' f3 i- V7 Y; D: V
- "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
' V+ U5 I4 P/ i$ b7 S - "extensions":".*" //any file with extension' q4 o) _8 K7 \6 W Y: @# _; m
- }
+ U- s. o/ T X" v( i$ A4 g& `+ ^4 w - }
* t( S2 V8 o3 C( L. f" M: { -
" [; c: m+ F4 ~/ u3 Z+ p! w7 I - ]
复制代码如果是其它浏览器,可以 ctrl+shift+c 路径,然后直接在地址栏粘贴。4 h8 b2 r: o- V- i
这样就可以用这三个键在浏览中预览页面了: F12 : Firefox alt + F12 : IE ctrl + F12 : chrome 当然,你也可以配置,其它配置器用这样的方式预览。 : A& c6 V! b! f' x% J r( {8 B
( a2 [, U! K6 u) H. r8 w' N+ X$ B# V
" t, y" C W9 v# r" h% Q- p |