安装 SideBarEnhancements 然后通过ctrl + k, ctrl + b打开侧边栏,在侧边栏的文件中右击,找到 open width -> edit applications 然后在这里边设置firefox打开的方式。
# _) r5 _$ d5 I* ~1 N% qapplication : 路径要修改为自己默认安装的路径。9 x( G0 T, I, f9 G1 g. e9 z
- [
! g& }1 G5 \' U8 R/ {; A* ` - {"id": "side-bar-files-open-with",; A3 ] @8 V( @, C$ \2 k7 ]
- "children":& T7 N8 u2 |- N. o
- [* N) s& @& K( j4 x" v$ [
- //application firefox7 y) Z2 R6 e. O: ` [3 M; T7 w1 N
- {
% B: A9 j6 e+ C: `4 B, L - "caption": "firefox",; A* L4 B8 c& {4 D
- "id": "side-bar-files-open-with-firefox",
( z( x5 L1 ~$ G& V, `! e - " K/ ~; |; u! q# t1 L! W: c1 t. ?
- "command": "side_bar_files_open_with",& D# \: v- ]6 y) K
- "args": {
* w6 q# s9 H3 j- g1 ? - "paths": [],
; K$ @. Q9 k5 z' C& Z; L - "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",2 ^) Z! r2 Y3 J6 d* P0 d4 d
- "extensions":".*" //any file with extension: V. k& f6 ]2 R- O. n8 s; @5 U
- }7 D' Q" C) u" Y M- z; g
- },# h( E0 O6 ^/ v' o3 q
- z0 [) b. ` u" f. U @9 K5 T- {"caption":"-"},
/ Q* S+ G5 h( `* t: [" r% R - {
E" R" |3 @& H, k" j6 [. R - "caption": "chrome",
- s% K u" V" ]5 S9 D - "id": "side-bar-files-open-with-chrome",
- D, {; _) v) ?9 `% \) s$ g - & e9 C+ |% `" V3 u
- "command": "side_bar_files_open_with",4 [7 M; s5 q" s' t+ q
- "args": {8 W0 K7 n9 J: I9 d, v/ X) Z
- "paths": [],0 x- n2 f8 I, \* s/ u
- "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",7 A: w1 g' s) }& ~: g* y
- "extensions":".*" //any file with extension
+ ?5 n0 L1 K2 }. F' _, A - }% h4 i; T4 v; W1 L+ R+ J
- }) O1 L0 o" _) t( o3 K3 t& M+ Q( q
- ]
- b) c T6 A- Q9 @! Z - }( h' D, ?" H* u/ c; {
- ]
复制代码 配置在IE中打开Key bindings -> User2 N+ B3 H# \1 t1 g7 N* J2 n' k! x
- [; W9 \, ]9 k5 m8 n( z, c
- { "keys": ["ctrl+shift+c"], "command": "copy_path" },+ ~& x) H' e- M; }' P
- { "keys": ["alt+f12"], "command": "open_in_browser" },4 N. W# J6 M2 ~3 X+ G/ [# g0 x
- { "keys": ["f12"], "command": "side_bar_files_open_with",
! n w- w" W, ` - "args": {
. h% q1 z0 i6 v$ C4 ^ - "paths": [],
- U5 g8 C$ {" a' ^ t2 M/ S% W - "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",
4 v! n9 ~. Y: u0 Y+ r* N5 z - "extensions":".*" //any file with extension
3 b% o( d) z. |* U2 v - } },' {4 x. Y8 m1 D5 l
- { "keys": ["ctrl+f12"], "command": "side_bar_files_open_with",
9 e" k% u4 {% b - "args": {8 [$ x& E% n- Y* ?5 d' L& ]2 h% j. s
- "paths": [],5 t! |' F( s# \1 O# }% R
- "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
* I3 L% n& T% ~$ h9 u - "extensions":".*" //any file with extension
* d% h" p `! c' P6 ] - }
' }' R1 _& Z7 d" p+ N# N - }
& G# m: h! x% Q" p( R8 U2 n - 4 _0 {+ j( ^1 x$ c A, w. M
- ]
复制代码如果是其它浏览器,可以 ctrl+shift+c 路径,然后直接在地址栏粘贴。
' E( @6 \! m! Q5 i7 w 这样就可以用这三个键在浏览中预览页面了: F12 : Firefox alt + F12 : IE ctrl + F12 : chrome 当然,你也可以配置,其它配置器用这样的方式预览。
/ w% T: k/ I- _( p# G! Z7 e+ x: X' d5 u0 W( B/ u2 k: N
0 ~9 i! E1 `& U
|