安装 SideBarEnhancements 然后通过ctrl + k, ctrl + b打开侧边栏,在侧边栏的文件中右击,找到 open width -> edit applications 然后在这里边设置firefox打开的方式。
, c4 Q5 h! ~7 N# J0 F/ R G4 {application : 路径要修改为自己默认安装的路径。( @+ j, D* |0 ^
- [
9 M) b* i4 o% b1 m - {"id": "side-bar-files-open-with",6 [" I/ y; y. a9 U
- "children":
T" x: }. |& T! m/ {4 e$ I8 |. f4 w - [
& m- \: y7 J) U' I8 ^ - //application firefox
" W2 a7 L2 U- F* z2 f# ^ - { U' f; t$ h; E& g
- "caption": "firefox",
) D: z p% ]4 i" `0 H - "id": "side-bar-files-open-with-firefox",
1 f" ~& x& d0 g; U2 V" o) u - 0 O+ _# w+ y( a: {4 f
- "command": "side_bar_files_open_with"," f/ Y9 J% R) O( \3 R' z
- "args": {9 |+ D/ B" d6 ?4 P2 I4 C; f. s* w
- "paths": [],
0 y( C! M. f* X$ A8 c/ y - "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe"," S& a5 B. y& {, E- F$ G/ _9 e
- "extensions":".*" //any file with extension% {: [+ y Z3 X: p
- }- \' @8 w) |8 o
- },
$ b2 Q; A+ L3 L$ i
9 L; H# N+ Y2 k- {"caption":"-"},
) }) h% y! Y5 P% m- B4 N - {
I9 j/ q" d) H n4 G# w - "caption": "chrome",, H7 L1 Y2 }: V z( P1 j
- "id": "side-bar-files-open-with-chrome",2 o3 k. T' q+ A# S2 q% B
& D D( x1 W1 M4 O% k( u! d: @& I- "command": "side_bar_files_open_with",
+ o( b' O# q2 E0 u' |/ i I - "args": {
3 h9 ~* j4 S: z B) M" B - "paths": [],. n3 Y* {# g! Q
- "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",9 n8 B0 b% X7 e" ?( s4 M+ B
- "extensions":".*" //any file with extension
; f" _# b% G# V i6 r - }, @ @) D. F( Y) \# H& X; K: n. {
- }; n) q5 W" l9 k0 Q p7 O" I; d, I
- ]
7 c0 c1 M" k6 S) b - }% T! M9 x7 s' u) `, S
- ]
复制代码 配置在IE中打开Key bindings -> User2 F, E, W: i7 L& R; x w3 E% Q: u& }
- [
/ R* \* d& P$ _- f0 z e2 @ - { "keys": ["ctrl+shift+c"], "command": "copy_path" },
! o7 i8 d0 P1 W" U/ l - { "keys": ["alt+f12"], "command": "open_in_browser" },# e! Z) M5 |5 F
- { "keys": ["f12"], "command": "side_bar_files_open_with",
$ ~ D9 b) t+ J" X - "args": {$ f0 R: c4 q) i; C! b2 _5 @7 t
- "paths": [],
' |1 l# [) M1 E O( ~: d - "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",. I6 R S: t; Y F8 d" A
- "extensions":".*" //any file with extension3 r/ e$ k% l; R8 C: ?
- } },
2 b$ r) p- B/ |, J7 n/ I - { "keys": ["ctrl+f12"], "command": "side_bar_files_open_with",
$ L( q' `* F/ z - "args": {6 @2 [9 {, w/ I( H" u
- "paths": [],
% H, V+ B! {! e8 l) D" e; c - "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
1 x9 ~9 _! @' k7 j" c& v8 z' B - "extensions":".*" //any file with extension
* y& p: `, T- S* i! `* N- U+ P - } * W, o) \5 w' d
- }
/ q0 }: r7 G7 e - 2 V) T% E3 [2 }! B
- ]
复制代码如果是其它浏览器,可以 ctrl+shift+c 路径,然后直接在地址栏粘贴。3 O/ _: F2 E& Y" Y' R
这样就可以用这三个键在浏览中预览页面了: F12 : Firefox alt + F12 : IE ctrl + F12 : chrome 当然,你也可以配置,其它配置器用这样的方式预览。 0 Q* O1 K# K4 G& a: r
1 l+ C0 \# n- {# q: [5 [0 L# u& E. F4 R# Y5 b
|