安装 SideBarEnhancements 然后通过ctrl + k, ctrl + b打开侧边栏,在侧边栏的文件中右击,找到 open width -> edit applications 然后在这里边设置firefox打开的方式。
$ M6 F% a) m" x8 F4 [4 `7 Fapplication : 路径要修改为自己默认安装的路径。
. G3 @/ u( n8 S6 @; p2 G. b- [9 x$ f4 e% W- }
- {"id": "side-bar-files-open-with",9 B# T, c+ T D5 [- M" K/ L4 T
- "children":
3 n; B3 p9 i1 r+ _ h - [
s% ?, O" B! i - //application firefox
4 x6 n' b( @/ W! T - {4 i2 W/ j6 S% E* R3 m: [
- "caption": "firefox",5 T u+ B4 e' }3 `$ I4 W
- "id": "side-bar-files-open-with-firefox",* Q$ F( g5 |; V) I8 M5 I
8 s7 }$ F( O% _! E# I9 f, U- "command": "side_bar_files_open_with",' F' L4 v* W0 x( T9 v" d( `1 ~
- "args": {
7 `. k2 F* [8 q0 Y% `2 H* U) L/ `4 z - "paths": [],! K/ Z* i- v& }& t. [
- "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",
7 ?; y, g4 t! A+ E - "extensions":".*" //any file with extension0 w3 A- t$ I# }0 q5 u5 ^9 o
- }
7 K. W" A0 k* o$ E - },. n% j/ Z# e' u4 E
5 U1 @- N- R# l7 x# }- {"caption":"-"},
) L5 _; W" U% G- J1 e! |3 q - {
! Q, h2 Y+ b4 F( q - "caption": "chrome",
: O7 H7 v+ i0 o# h, Q - "id": "side-bar-files-open-with-chrome",
6 S9 o7 p n$ e; _1 j2 C! z, }; a - 5 T# w3 N; o' i/ j
- "command": "side_bar_files_open_with",9 ]1 P F [& W
- "args": {
# Y6 G2 ?$ A& _7 |# A - "paths": [],
; B6 j3 \1 u4 q9 b: I8 M) w1 u: p - "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
( g: O% C9 B( ^+ E+ L - "extensions":".*" //any file with extension
: h9 d: q+ i1 o/ h& E3 W - }; j8 g/ m0 O2 K1 Y, ?( x
- }7 P6 ~9 v4 u& [, U2 P2 h
- ]3 @. L3 A, T) o* D( @$ H4 g; }
- }- r1 J D) X( Y' z6 Q
- ]
复制代码 配置在IE中打开Key bindings -> User
" D! l* f8 T. j: R0 m X3 |6 J- [4 d" B: A$ _2 @# i
- { "keys": ["ctrl+shift+c"], "command": "copy_path" },9 { V! k7 A$ C% f/ r) M+ R% h
- { "keys": ["alt+f12"], "command": "open_in_browser" },
7 {4 g$ L' T6 m7 n* i- _" U% ` - { "keys": ["f12"], "command": "side_bar_files_open_with",0 J+ t* q$ p7 t; S& z3 V8 b# s: ?2 X
- "args": {
& C' l* l4 P% Q) W& V% n' }* p - "paths": [],
9 q! e* N0 _9 S6 m( {6 I - "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",
3 X( T9 Z/ e7 I% F' R; x5 f - "extensions":".*" //any file with extension: H$ R' z8 p+ S6 v6 J
- } },
, v3 ^6 y" r& y, o5 P* H% h - { "keys": ["ctrl+f12"], "command": "side_bar_files_open_with",6 v7 S: ^! @5 G2 v
- "args": {
% t$ m7 u& V3 s' V( }8 x - "paths": [],
3 v# v4 D* _+ m! S8 v& ]) f - "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
1 L$ v% g, s a; S- e - "extensions":".*" //any file with extension7 _8 q, ~0 }2 D/ W
- }
. P6 O" }* p2 |( M3 J3 v - } " C# i7 e+ X' ^- |/ q
-
/ b! O, U# p0 I" S" P - ]
复制代码如果是其它浏览器,可以 ctrl+shift+c 路径,然后直接在地址栏粘贴。
! v8 R. ^1 z- d8 H! U# z1 i3 D 这样就可以用这三个键在浏览中预览页面了: F12 : Firefox alt + F12 : IE ctrl + F12 : chrome 当然,你也可以配置,其它配置器用这样的方式预览。
; G& j2 i2 F8 J/ R1 n
6 a+ Q; Z4 q+ |+ V7 K8 K6 T9 x% Y% z
|