安装 SideBarEnhancements 然后通过ctrl + k, ctrl + b打开侧边栏,在侧边栏的文件中右击,找到 open width -> edit applications 然后在这里边设置firefox打开的方式。
/ I5 F8 o* Y+ L+ q1 V8 f; i, M% g, y6 oapplication : 路径要修改为自己默认安装的路径。, n+ e' M. z: c, \+ u) S
- [
8 t4 M; f1 }/ l2 n- ]* l - {"id": "side-bar-files-open-with",
- W$ p, x- D* F - "children":
4 I. y0 F8 z3 g( P5 ~8 H& `8 g - [1 I/ j! W S1 d8 J. Z
- //application firefox
! ^# o) A, V( G+ h: `7 P - {
/ j( U: E* t6 W3 P4 m9 u - "caption": "firefox",
8 \" f; L' R. D, A, ^2 |! n0 V - "id": "side-bar-files-open-with-firefox",
N7 f* b6 w" O8 O2 v% a( r - * o; [! Q9 b5 Y. r O
- "command": "side_bar_files_open_with",
, ~' t9 n4 H( i/ w0 q - "args": {
4 \2 {, a# [9 }0 M } - "paths": [],! V! {- L, h8 r' X5 b3 H
- "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",
- w( A3 N) G3 _! Y5 I# W - "extensions":".*" //any file with extension6 q, D l: k( D! T( Z; y9 x
- }6 X6 q" Z& s7 p/ V4 Q( y6 b
- },
- r9 K1 F( n3 Y9 a4 W
6 _3 S! Y) {5 y/ o$ Y& G$ ?/ S, E! R( ] X- {"caption":"-"},
1 s& o: V" K$ k! t - {
1 v2 ?3 n; i$ M% b z8 J+ c9 h - "caption": "chrome",
/ h3 P+ L( [4 k7 K/ y - "id": "side-bar-files-open-with-chrome",
9 ~( M1 o4 X+ J6 P: ]9 m$ w - ' ^ o' v% r8 U% v3 ^
- "command": "side_bar_files_open_with",
5 U8 @9 v7 D' w( t4 x7 z - "args": {- q! L+ M1 {- n, g
- "paths": [],
& I, `4 G' _6 _: U8 p. l4 X - "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
- s$ Y2 A2 k2 w6 U) n# H8 e - "extensions":".*" //any file with extension _7 r5 O% [2 R% x
- }3 M1 w9 C7 ^- K* m2 S* E' d' Q
- }
2 s" X0 j! K) b/ \, L: ^- [ - ]
4 j- N0 ^/ |0 A) J. P- P$ U6 b - }
/ q8 k& z" n. j* n8 e - ]
复制代码 配置在IE中打开Key bindings -> User2 v1 A x4 a" ~. v' t
- [
/ {( x5 r+ Y' U) p8 b - { "keys": ["ctrl+shift+c"], "command": "copy_path" },
& ]2 ~! H- M" S' t5 b# \$ q - { "keys": ["alt+f12"], "command": "open_in_browser" },
$ k" L) V& }' a: o4 W, z+ v - { "keys": ["f12"], "command": "side_bar_files_open_with",
, V% o; b' ]4 ^& j - "args": {
) ~5 N6 m) H3 U# f' z: L& U* E0 W - "paths": [],
% I- ^5 B: w- k- L' T( T& D/ H - "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",3 E$ u4 S- U3 r
- "extensions":".*" //any file with extension' l( Q" Q/ W' U3 J# ~# x
- } }, l& o ^) p: z% W% X" Z) i8 x
- { "keys": ["ctrl+f12"], "command": "side_bar_files_open_with",
4 a0 f% J" Y( y! v5 h7 {9 Z; `$ E - "args": {9 m4 A3 _$ }% W6 _6 b; Q e- O
- "paths": [],2 p8 J& `% M I+ A
- "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
& b& V0 v, P& S- m' Z$ {5 j. ? - "extensions":".*" //any file with extension
4 J1 S4 S& b! r+ N4 `8 b - } ) ?, z+ z) C: R: S5 Z5 }
- } $ H _- h/ V& w' g; d4 m" f
- 0 z2 [ I6 i9 Y$ y! d. i
- ]
复制代码如果是其它浏览器,可以 ctrl+shift+c 路径,然后直接在地址栏粘贴。
$ \2 M1 g# n }* T& S 这样就可以用这三个键在浏览中预览页面了: F12 : Firefox alt + F12 : IE ctrl + F12 : chrome 当然,你也可以配置,其它配置器用这样的方式预览。
& \, u1 \4 s Q# [. s
& `. w- G- j9 m$ {7 @& b, q- R
& [! [8 M, o- f, n |