安装 SideBarEnhancements 然后通过ctrl + k, ctrl + b打开侧边栏,在侧边栏的文件中右击,找到 open width -> edit applications 然后在这里边设置firefox打开的方式。
3 y; ^( s4 n, f F {application : 路径要修改为自己默认安装的路径。& S: o* [2 ~- [/ @! ]. r
- [
' G. P# E9 [: o3 L( j - {"id": "side-bar-files-open-with",2 g* g! Q0 s! M1 g9 `
- "children":
' I. _# `8 x& p& N. o - [
% x w) }- b# H# W6 J - //application firefox* {8 K! E- j4 m; K7 v
- {6 W6 H& R5 u# B$ G" Z- p
- "caption": "firefox",* \: L% c \3 h5 r+ f7 F. u
- "id": "side-bar-files-open-with-firefox",
4 i) f Y. U' t% @$ o - ; B: @/ @. Y; r; L
- "command": "side_bar_files_open_with",
3 n* [; y, M1 s$ ~ - "args": {4 [! K0 A0 {. U. [! R a S: S4 m
- "paths": [],
$ U- x- {4 q" @8 m- W$ W( x - "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",
$ y8 _* o6 o& s; J: ?4 P - "extensions":".*" //any file with extension
Y" i, y( `0 x) h: u) H - }% n8 u7 w0 z& i
- },
# X+ d2 f1 E. h4 R4 J5 P - # S4 h$ [0 z$ o. k
- {"caption":"-"},5 L2 ~5 R+ r; l) s
- {
! N! \! V# b4 v6 \0 B: e - "caption": "chrome",
+ ^( r4 c( W; M; s" a5 j - "id": "side-bar-files-open-with-chrome",
' u4 o3 f( ~3 ] - 2 C" t9 n/ p) k+ q4 u2 i3 Z. J
- "command": "side_bar_files_open_with",; P" l5 v# M) p; x% P! E
- "args": {
, j c" }* \9 f( f% E* u* @ - "paths": []," {" K3 t Z+ n; I [' g: Z$ L J
- "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe"," A3 O3 H; v M
- "extensions":".*" //any file with extension
5 O6 N1 O$ o) ]4 e f" m - }& _. e) O% m) o6 S- j, k
- }
! m( C6 n3 E' s8 e4 ]; k" r1 {" ]" s - ]. J$ Q" `( T J, G- j
- }
8 [& E" {2 T2 k% u - ]
复制代码 配置在IE中打开Key bindings -> User
" i, N2 ?0 a* H# M3 z, b- [ m4 b, J7 m) n1 K( U) N
- { "keys": ["ctrl+shift+c"], "command": "copy_path" },& ]: p3 f8 M; P6 p& c1 h
- { "keys": ["alt+f12"], "command": "open_in_browser" },. F/ F8 Z- }7 O
- { "keys": ["f12"], "command": "side_bar_files_open_with",3 v' C) T' s" r5 ?6 u) I" Z& Y, Y) H
- "args": { l6 v3 I4 p6 B9 m8 Y: U% s6 {
- "paths": [], I2 M' `1 \, ^: Z
- "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",* i% z f2 R% W, v: j( d. U
- "extensions":".*" //any file with extension. f% x Z. w& Y% u; }! g
- } },
- Q0 D/ q+ l: l I3 ]# y - { "keys": ["ctrl+f12"], "command": "side_bar_files_open_with", }$ O& u- n+ Y; d! ^
- "args": {
& U _/ f& h l0 T6 M ]2 _ - "paths": [],- B" m8 I/ E8 ?9 i. M, h% ~/ C( t
- "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",8 e; h2 _! D0 i/ Q0 q2 k5 b) j) F
- "extensions":".*" //any file with extension
6 X$ z& L: z/ o4 p l$ Y L/ K - } 7 M9 ]% K5 V% x* N/ v
- }
% V% \5 c9 _" b% B - / K5 E, v' g5 ^
- ]
复制代码如果是其它浏览器,可以 ctrl+shift+c 路径,然后直接在地址栏粘贴。
* U, t, e/ E( B- K 这样就可以用这三个键在浏览中预览页面了: F12 : Firefox alt + F12 : IE ctrl + F12 : chrome 当然,你也可以配置,其它配置器用这样的方式预览。
2 q- _% D% e& n$ s. n, r, }! U$ y" z2 V e; x
) ?8 I$ s8 ?% ^( O0 R: d) h' [
|