安装 SideBarEnhancements 然后通过ctrl + k, ctrl + b打开侧边栏,在侧边栏的文件中右击,找到 open width -> edit applications 然后在这里边设置firefox打开的方式。
" _# P3 F, ^ f9 C/ ^application : 路径要修改为自己默认安装的路径。9 H1 m$ D {$ R( j9 p+ W
- [) ^- ?9 Z$ r. b; y6 P* N4 w
- {"id": "side-bar-files-open-with",# c" ^5 G, t" G3 d% a
- "children":
1 W" Z+ r4 D" t1 X - [
9 M* |& [! e" i0 M7 T$ g# s* k v, [ - //application firefox q _* Q3 G2 c- g
- { w- G- v7 b9 a% b$ u
- "caption": "firefox",: L/ T% g) x$ G' T
- "id": "side-bar-files-open-with-firefox",. X% h# j& J3 [1 Q; {; m6 H# m
8 N0 z. k- c) v1 H$ Z" [: }4 r, b- "command": "side_bar_files_open_with",
5 D- O" r' x5 U7 M3 ?5 ` - "args": {
" M+ W( l( V n" ^3 { - "paths": [],: t2 R. z0 `$ R- U7 Q P
- "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",
5 P A% v3 F/ L2 H0 L9 j8 G - "extensions":".*" //any file with extension
: l, a/ }8 `( @( L3 v8 m+ l - }* p2 l5 w" Z% }( h9 ?9 i
- },) |+ \4 Y4 z m2 `/ h
- {) y2 v% z: t$ @. E6 C- {"caption":"-"},4 R3 h% l# P( U5 T# M# s
- {
" Y8 ^ v0 b7 _; M% A( a# y: X - "caption": "chrome",
- I5 @, v, a# H( }2 ]6 ?' v0 G - "id": "side-bar-files-open-with-chrome",
% b5 u, Z* O+ n) e: r0 N - " G; z( W$ G# B/ E( t5 p% n
- "command": "side_bar_files_open_with",
) R2 F9 ~3 E K7 ]6 t9 l - "args": {
9 N& I0 X% o4 I" M# F# d; B; W7 z3 J0 _6 e - "paths": [],
% D: @; W B1 A7 e - "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
. g! M" l! R: E/ O. O% c/ @ - "extensions":".*" //any file with extension1 m& w% j6 k! J& q5 L6 ^
- }
% [' |# X( E, i' f3 K8 a2 A - }; |2 g9 ^5 |. ]: }$ D; H
- ]
' C" K7 M" u C$ r" A! L! B$ Q, @ - }
( H4 R6 y' @. P3 Q* ` - ]
复制代码 配置在IE中打开Key bindings -> User' K% @4 M( l; F1 \
- [( z& c) y5 y; G( R% B$ r$ S
- { "keys": ["ctrl+shift+c"], "command": "copy_path" },
5 V f- A. W, B8 v) w- h - { "keys": ["alt+f12"], "command": "open_in_browser" },/ C X+ T# R/ Y; b1 i- c- w; j+ z
- { "keys": ["f12"], "command": "side_bar_files_open_with",' L0 V' C& e4 @1 h1 i( X
- "args": {
% R* ]* G q8 y' Q* Y - "paths": [],
! Q* q/ [7 x2 D - "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",
; S: g+ t0 e1 T% W5 C- @ - "extensions":".*" //any file with extension) ?. I$ g9 W/ \$ S. h) H
- } },
$ ]9 _2 B: O8 w$ j - { "keys": ["ctrl+f12"], "command": "side_bar_files_open_with",, n: Y' B; k% p3 |5 h
- "args": {
3 u. `1 S! k" w7 D - "paths": [],3 O' f; \1 E- p N3 r/ p _- U: ]
- "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
4 {0 b$ D+ f! @: } - "extensions":".*" //any file with extension
3 o/ S' A( R$ f% n+ l* B5 |$ b - } ( b" m8 w, w5 g4 B2 P k6 G
- } 4 Y6 ^9 L j s# |
- - T% q" W8 w- Z% v; Y
- ]
复制代码如果是其它浏览器,可以 ctrl+shift+c 路径,然后直接在地址栏粘贴。
" z" G" L1 m, S4 a9 J4 b( n) l0 K9 v 这样就可以用这三个键在浏览中预览页面了: F12 : Firefox alt + F12 : IE ctrl + F12 : chrome 当然,你也可以配置,其它配置器用这样的方式预览。
# X9 @7 o* [1 B1 |; C: ^8 b! N3 S, q$ b
. f( v( U3 e7 Y% y6 c |