安装 SideBarEnhancements 然后通过ctrl + k, ctrl + b打开侧边栏,在侧边栏的文件中右击,找到 open width -> edit applications 然后在这里边设置firefox打开的方式。 D0 x) M! O! l0 j+ k( @8 S
application : 路径要修改为自己默认安装的路径。. O( E: d4 n0 a2 S, L* q
- [, r: n }: l) R* b
- {"id": "side-bar-files-open-with",9 G7 Q: F$ X5 s" O
- "children":
. [- z1 H: p% W( p7 T; q - [/ b9 ~1 F& v7 T d7 O3 f
- //application firefox4 V3 O* T8 z Q' }8 b) Y" ^
- {7 k7 V2 c* y8 Y0 j7 `
- "caption": "firefox",: X. s/ e3 K$ |8 Z: M* \, Y4 W8 X
- "id": "side-bar-files-open-with-firefox",
1 G) y/ W& F9 ?. p- C* y; d& A e
; ]" `9 }; H- [- t- "command": "side_bar_files_open_with",8 p, @$ K3 x/ s) d6 F
- "args": {
+ i8 H! j( C8 Z, I2 a. T& D - "paths": [],6 M, h. m. s7 t8 r9 Y% Y
- "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe", C& i3 I; m7 S
- "extensions":".*" //any file with extension
$ K* x2 m, u9 c) { - }4 J2 }* d2 _$ _& e" g
- },/ n0 @, Z6 I7 E
7 h+ q% Y& d! Z# N! l8 y# F# G- {"caption":"-"},
! t& ^) ]) V' }. Z - {" f" w2 g* u8 U2 ~
- "caption": "chrome",9 W! o" Z9 t' n) R- f
- "id": "side-bar-files-open-with-chrome",) V b8 Y0 G* \# T
- 5 [5 R5 h. {4 G: H6 P" M! m1 f8 f
- "command": "side_bar_files_open_with",6 L6 h z: m' L5 ~0 k: E
- "args": {! E' X9 I8 P# |, O
- "paths": [],/ f5 _/ \9 i" t7 N/ R0 Z1 y# f3 D
- "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
2 F+ v3 e8 t6 k6 L r - "extensions":".*" //any file with extension
/ b+ c4 o7 T, |: U: j+ D - }" v3 o, G1 C& x9 I$ q) L2 Q+ O$ Y
- }+ a9 G2 x0 r3 j! {+ g9 w f
- ]
8 ?) Z+ D: p' {% L# g/ o - }
- h' H& }6 P& Y. S' _ - ]
复制代码 配置在IE中打开Key bindings -> User
& r* P- I; _# i( |2 O+ [) G8 }- [8 p, P" U! Y+ Y/ N( g$ h8 L
- { "keys": ["ctrl+shift+c"], "command": "copy_path" }, o0 s% S2 \+ N+ I% @. Q: v- O' H
- { "keys": ["alt+f12"], "command": "open_in_browser" },
) r8 g w" ]* w8 A, `: M - { "keys": ["f12"], "command": "side_bar_files_open_with",& g" h$ \ _1 w% W" y/ t
- "args": {" D/ o0 k& b+ i) d3 u- e3 e& {8 T
- "paths": [],; S5 C9 S+ j& J& F0 ]
- "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",
* C3 Q x( g& G9 |' ^ - "extensions":".*" //any file with extension {2 |# a' m- e
- } },
' D* b: o4 Q: Q) M7 }8 | - { "keys": ["ctrl+f12"], "command": "side_bar_files_open_with",6 Q" ^1 e3 Y* D {$ [
- "args": {# [0 e5 }& n2 o( d+ q1 x; k, d
- "paths": [],
) P% G4 m* M' t/ o/ f - "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",* l; w, z3 d( i
- "extensions":".*" //any file with extension) u- `, \, W7 O, T) H' ]+ j
- }
/ ^7 ~) c' K% G/ W( V - } ! {, n% c, z+ c. T" _
- 8 h% B7 n" Y: M6 V9 I
- ]
复制代码如果是其它浏览器,可以 ctrl+shift+c 路径,然后直接在地址栏粘贴。
$ D; |% _! D. U! H, s6 R 这样就可以用这三个键在浏览中预览页面了: F12 : Firefox alt + F12 : IE ctrl + F12 : chrome 当然,你也可以配置,其它配置器用这样的方式预览。 5 y8 u; V: z& O; H' u$ L
: u- ?5 y- }( G) d
% f: x% q$ F m. S# k |