安装 SideBarEnhancements 然后通过ctrl + k, ctrl + b打开侧边栏,在侧边栏的文件中右击,找到 open width -> edit applications 然后在这里边设置firefox打开的方式。 8 N& ?( C5 F$ H6 g T% q; _7 E
application : 路径要修改为自己默认安装的路径。$ {3 ]- y6 S ^* f
- [3 h+ o. w5 f/ _, S. W
- {"id": "side-bar-files-open-with",
1 _; \. t2 ^$ f( R; l9 W1 b; M - "children":
" Y8 F6 m H# ~5 H) o( ~' c4 V - [
, l- j0 E6 l0 d- b/ r& e' M - //application firefox8 J) E* t$ X3 f3 u9 w6 h
- {: y6 N, ?( ^. f
- "caption": "firefox",
+ b* A2 Q$ a, G% A$ D7 N5 A, v - "id": "side-bar-files-open-with-firefox",' [3 U, f& Q5 N
- ) L* W- I' }7 F1 l( k( ~( |& ~$ P
- "command": "side_bar_files_open_with",3 R f: N8 A6 }/ j/ z6 E9 L
- "args": {' ^1 \( m! P' p* `. t! R. q
- "paths": [],
5 t% e$ D6 V, A: `7 P - "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",$ C+ f8 Q+ J; ]
- "extensions":".*" //any file with extension
1 l7 A6 n* M1 o/ A5 j; F - }/ x0 e/ T5 A& [6 R% c7 }
- },7 T* p: b( k9 i# L0 l
/ }5 _' m7 W( j2 I, Q- {"caption":"-"},
* S# ~. O& P6 s - {
3 ?2 U% E `5 q - "caption": "chrome",% I5 M+ L0 x5 M7 ?$ @- R y( [/ X
- "id": "side-bar-files-open-with-chrome",+ c* J; N# A, O& z! {
3 S2 m% o K$ @4 i- "command": "side_bar_files_open_with",/ h- K0 K; x9 K
- "args": {
( `1 p% L; y& w - "paths": [],, f. E0 ~* ~) l
- "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
8 r& D3 G D+ _: U( e4 d - "extensions":".*" //any file with extension
3 z" [& F- c; D- a, w - }' {, |- E4 m" |: o& t& P4 h* K- s0 S
- }
8 _0 j4 Y; F5 v. ]4 L - ]% F& n a- {3 U
- }3 N, @8 ]8 Z4 g) J) r
- ]
复制代码 配置在IE中打开Key bindings -> User
! P2 D0 y3 }: Y4 ]! h6 C: z+ d- [+ n6 W5 S, I# E( L/ t7 ~2 Y
- { "keys": ["ctrl+shift+c"], "command": "copy_path" },3 e9 j$ U% k1 ]( a$ i+ l3 h- X' G
- { "keys": ["alt+f12"], "command": "open_in_browser" },
" a: b" O( E4 l - { "keys": ["f12"], "command": "side_bar_files_open_with",: G4 M1 h1 @$ j" M; q. W
- "args": {
$ K3 [1 ?& }6 j4 l - "paths": [],0 _3 O; O3 e, V+ L% [6 ^
- "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",. K& R) k6 r* V( r
- "extensions":".*" //any file with extension2 @- N* |; X0 s( k% [9 s, E
- } },
/ g4 M# v7 E2 E7 h - { "keys": ["ctrl+f12"], "command": "side_bar_files_open_with",
! [# Q) W4 Q" ?; [0 { - "args": {) S: |3 K1 M, o9 {( m
- "paths": [],
. ~3 r% } b5 z3 L- f - "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
$ `7 G- ]* {3 s" d - "extensions":".*" //any file with extension
x% {: m6 Q. ~* ] - }
- O/ z2 ^1 `; k _ I - } * N( W6 t; Y( s+ p1 y
-
' F" J) d6 A8 r. t9 e - ]
复制代码如果是其它浏览器,可以 ctrl+shift+c 路径,然后直接在地址栏粘贴。# S% N8 f# t8 e) ^
这样就可以用这三个键在浏览中预览页面了: F12 : Firefox alt + F12 : IE ctrl + F12 : chrome 当然,你也可以配置,其它配置器用这样的方式预览。 # M6 ?9 ^& J9 W9 ]7 _
8 \6 D' k0 } A. \
( a- U2 F0 T: C5 t* I3 F6 g |