安装 SideBarEnhancements 然后通过ctrl + k, ctrl + b打开侧边栏,在侧边栏的文件中右击,找到 open width -> edit applications 然后在这里边设置firefox打开的方式。
, L/ H$ D7 `" ^ Uapplication : 路径要修改为自己默认安装的路径。. g% \ u r; u$ o- A
- [
' W. @ E3 P/ I, n& F - {"id": "side-bar-files-open-with",
+ y6 ~' A$ @6 h7 H: r9 `1 L2 d% d - "children":
* |$ }) B8 ]+ d C! ~# ^ - [
5 k# L5 ~8 F" u5 H/ t1 z - //application firefox
# Z, @7 i! K( [' h - {
" S( j2 S' G9 U5 J - "caption": "firefox",
3 o5 B _+ x, r - "id": "side-bar-files-open-with-firefox",3 ]- |" [2 m" n0 ~9 J" h/ ]! o) g
1 A3 M. A+ P* f! F0 }& P; U- "command": "side_bar_files_open_with",
/ {% o/ ] j. ^4 D, Y - "args": {- h4 ?+ ?* I6 V* s
- "paths": [],
3 B3 c. K0 \1 Z4 g8 n" d$ x. j! | - "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",' J/ i2 C. r4 W3 J& n+ p
- "extensions":".*" //any file with extension* v+ X+ U8 K3 T# J. j, N6 }8 V4 ]
- }
; T0 I. ^3 C( `% e3 } - },/ a- b' q. q6 \. m
- $ b$ ?. ^" g/ |, r
- {"caption":"-"},
( D& u) r) u1 w G' S9 ^, ^ - {5 S- Y. G- _, G% U4 L( A2 W/ }+ c
- "caption": "chrome",) i6 w& M7 b8 t) U1 ~
- "id": "side-bar-files-open-with-chrome",
5 S0 |( H$ e3 W: N) E - ) y0 s) S- U g: {
- "command": "side_bar_files_open_with",
* I4 P( w4 r7 S, Z9 `+ Y2 J, a$ h - "args": {
5 F' y6 l3 g6 P$ R0 p - "paths": [],) ?8 f+ J# l6 S& E* ~. l" {0 _
- "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",+ }# l, z, N |0 I
- "extensions":".*" //any file with extension, M7 h' V& |" I! m% X) ~
- }* {) n$ [* |+ k' E8 h
- }5 |9 z! y0 u7 W& i
- ]: m( c6 v" X; I7 T
- }- c+ `/ ` i, o
- ]
复制代码 配置在IE中打开Key bindings -> User
5 X' ?- ~# t. ^. V- ~3 @' E- [( k0 h3 u) W) N9 \" q9 P4 [
- { "keys": ["ctrl+shift+c"], "command": "copy_path" },
& n% J( l- A9 n) R - { "keys": ["alt+f12"], "command": "open_in_browser" },% j/ P' i* E* i0 u7 ^; }! u
- { "keys": ["f12"], "command": "side_bar_files_open_with"," f6 ?( A2 K) M
- "args": {( i E( l# Z! P* y1 J4 {3 f
- "paths": [],! P& c: q u k Y1 s" x. `
- "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",1 p; P: Q( i" m3 K" e2 X* j, y! G
- "extensions":".*" //any file with extension
; z9 N) m! |$ _$ P" @# W - } },
4 i. W% [% t, H6 k; v+ P - { "keys": ["ctrl+f12"], "command": "side_bar_files_open_with",
# K( p+ Q9 W# @9 ]% D6 b& Q - "args": {
% h# H0 U0 g1 C8 H8 M - "paths": [],' }. w6 h* u) t+ v8 F
- "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
* l- \1 M3 ]7 f8 d+ a( x' k6 w3 { - "extensions":".*" //any file with extension: k _, g& e0 M( M6 @8 r
- }
3 w; Z/ |8 C5 _7 S! J! z; A - } 3 _7 D7 R/ M0 u/ }, k
-
& z1 Q, X% L" D5 l' k* ]- V - ]
复制代码如果是其它浏览器,可以 ctrl+shift+c 路径,然后直接在地址栏粘贴。) V/ h9 g+ V- N
这样就可以用这三个键在浏览中预览页面了: F12 : Firefox alt + F12 : IE ctrl + F12 : chrome 当然,你也可以配置,其它配置器用这样的方式预览。
$ e) g' @3 |# X' { j
4 q3 p, U9 h* ]
# X! |- ~- _6 {' [* V a/ `" `5 a |