安装 SideBarEnhancements 然后通过ctrl + k, ctrl + b打开侧边栏,在侧边栏的文件中右击,找到 open width -> edit applications 然后在这里边设置firefox打开的方式。
8 u0 q: ]1 A! [+ R* eapplication : 路径要修改为自己默认安装的路径。
" u5 G' t+ R4 b$ g) u2 k2 l3 K- [
! z! @6 L( v/ t% G - {"id": "side-bar-files-open-with",
& {* @: d4 F3 [8 c - "children":
% ]* k5 g! `" V6 F+ D/ x - [
7 i6 m$ d3 P# L. L - //application firefox" d2 b0 ?! w5 A. `2 [% S4 u
- {8 x4 i( \ s/ E1 ?, H$ l! E
- "caption": "firefox",( c2 @- L! |2 i- D! u8 b
- "id": "side-bar-files-open-with-firefox",; K0 B6 i Z' j
) D% `9 u( i9 I5 m; _0 v, K- _- "command": "side_bar_files_open_with",
* a% f- p& i. X. F! A- c# y' Q% Q( k# ] - "args": {
& i. l& k1 e5 ] - "paths": [], |# D2 ~2 y6 R+ ?
- "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",. i0 }$ A5 X! H8 V8 _
- "extensions":".*" //any file with extension% ?6 @6 w- G! G+ c/ A" Q
- }
0 ~' A7 D) u2 g: q# c; Y) g( w0 j4 \9 f - },
* E0 K3 i: M; ^0 q4 R+ K - 7 A3 j9 M6 ~- O: ?0 l9 l) V# @
- {"caption":"-"},' c6 W; ?5 E H; ~
- {
. d- w- z7 e$ e! ^# C* c - "caption": "chrome",- F; `* f' a; I$ p
- "id": "side-bar-files-open-with-chrome",
) T: I; L% Z! G3 \% C
) ]' a2 k+ p/ R _: x- "command": "side_bar_files_open_with",( h j% J6 ~' Q& \( z6 `
- "args": {
3 G* L+ n$ J2 l+ S. ? - "paths": [],
; w( E9 z7 a8 z( E( w% s: L$ { - "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",& i. w% g5 u* N0 K, I8 i- h! H
- "extensions":".*" //any file with extension' C! ~4 M- U9 k; d5 Y: W7 v
- }, j. R3 [: W. g' Q5 R n. i
- }
6 K+ a8 ^3 A& _$ b$ C U" Y - ]1 L. H) a8 J6 C5 z; ^) H P
- }
6 O: ?6 n+ p6 r9 {3 w! j - ]
复制代码 配置在IE中打开Key bindings -> User) Z/ i, R- a9 F, K0 r
- [9 l4 B) C4 {' Q P7 }1 P! y
- { "keys": ["ctrl+shift+c"], "command": "copy_path" },/ K. Z' w$ v& u- j. P+ i
- { "keys": ["alt+f12"], "command": "open_in_browser" },4 E$ G( c2 D+ j2 }, U- e% \
- { "keys": ["f12"], "command": "side_bar_files_open_with",6 m! b. y6 d* N% j$ {
- "args": {
/ \ @* T5 T8 K: g" q - "paths": [],
8 M G, H) u$ p+ P - "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",& \5 Q) F% X# S% I" a* x" B
- "extensions":".*" //any file with extension7 r8 h: V$ }+ c1 J/ g! v
- } },
% W1 {% g7 C, D' ?5 v8 T - { "keys": ["ctrl+f12"], "command": "side_bar_files_open_with",
; p K( O; Y {0 o - "args": {
3 C% h9 l: R7 N- H0 V2 E6 ]- {3 o+ A - "paths": [],: I6 g& t2 U1 w6 _; Z* z$ Z9 P
- "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
- J( s5 Z- M! D7 P - "extensions":".*" //any file with extension
5 J: [9 f' h) Z% j- k7 m: E - }
, `* J5 a+ X4 p+ w9 ]& b! G$ L% D - }
& L; E( C5 i, [ W- `( c2 T) v -
, h# [4 b( z* b9 q, x4 U - ]
复制代码如果是其它浏览器,可以 ctrl+shift+c 路径,然后直接在地址栏粘贴。( c& U4 E ]0 g: y) l$ v
这样就可以用这三个键在浏览中预览页面了: F12 : Firefox alt + F12 : IE ctrl + F12 : chrome 当然,你也可以配置,其它配置器用这样的方式预览。 $ {! @# D& X7 w
}4 J8 S% t! p8 H% {' Q
; s/ v- S; G3 e& k |