安装 SideBarEnhancements 然后通过ctrl + k, ctrl + b打开侧边栏,在侧边栏的文件中右击,找到 open width -> edit applications 然后在这里边设置firefox打开的方式。 * n9 R! k5 t' B- N
application : 路径要修改为自己默认安装的路径。5 K' n9 l4 \& H
- [4 N; U/ l! I0 E# o# A9 {! ~, \
- {"id": "side-bar-files-open-with",
9 I& u/ J5 d& S/ p3 ~ - "children":
- ~! T T/ |3 r8 J }6 i) M - [4 U( u/ C+ g1 { ]
- //application firefox
8 r3 L* f% u0 P( ] - {* c3 u+ ^! f: K1 i: R% H
- "caption": "firefox",; I; e# A" l* C* q) A
- "id": "side-bar-files-open-with-firefox",
5 j2 V2 y4 `5 }# a) [ - ' |' o: |7 a( ^! E/ s* ] }* B
- "command": "side_bar_files_open_with",
0 s$ w+ Q) B4 t& L( j! E$ N - "args": {6 @5 o7 H; s6 g5 u
- "paths": [], t' ~& F% o% b/ l
- "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",. o: ]) o, Y) Q$ t3 y
- "extensions":".*" //any file with extension* @1 S7 V) {: y, \! E" x
- }
! J' }" \$ H9 e5 V" X: R& P8 B - },
& Q- Z) M9 I% A; G' Y7 L - 2 P# D/ ~+ }9 \( \
- {"caption":"-"},
1 D$ W, C P: _8 k% [ - {
6 w2 c: B$ O0 D% X9 S - "caption": "chrome",
@6 v* b& b) r! ~ - "id": "side-bar-files-open-with-chrome",* l3 d3 Z7 f+ [1 S1 I) l p4 c
8 e: D+ x, r% Q1 k0 `- "command": "side_bar_files_open_with",/ O+ X- ?: b' X) Q
- "args": {
3 o3 A/ [: S4 n" T) [ {) |, O2 p - "paths": [],
* C6 h/ c3 m2 m$ w) R, p n - "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
& n+ o) v; `! `; ~7 r" J* t - "extensions":".*" //any file with extension# N! @ s; i9 o! u0 S. P3 M3 ~
- }5 _* W# s/ N( \1 ]/ ^/ m
- }6 |7 m2 k. R$ E( n6 w6 D
- ]7 s3 C+ U4 ]+ I N8 P
- }
1 ]* z& v8 d3 |; W2 o - ]
复制代码 配置在IE中打开Key bindings -> User
0 k$ u, |! Q' P7 c& w- [
, I# h$ A! u+ X0 Q - { "keys": ["ctrl+shift+c"], "command": "copy_path" },4 a3 R. J) M: H& g1 E
- { "keys": ["alt+f12"], "command": "open_in_browser" },. R7 R( m4 \& W. U
- { "keys": ["f12"], "command": "side_bar_files_open_with",
+ x4 W5 D2 ?# z/ t) [! H - "args": {% i8 t, e# \7 Y
- "paths": [],
% V; I. O* s1 \5 E" z' K - "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",# v. U; y! D$ a: {* v2 `/ M
- "extensions":".*" //any file with extension
7 S4 A5 w1 Q* u( j; l2 ~: I/ B - } },
9 i) j, E$ |' G# c: v% K - { "keys": ["ctrl+f12"], "command": "side_bar_files_open_with",, l ?& t! r2 O
- "args": {
" G" W& ~% k; i+ D1 [ - "paths": [],! j1 b7 c# ^, a, S& v- o/ R
- "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
4 V2 X& C8 r. @" \9 h - "extensions":".*" //any file with extension
& \( c) X! j' A7 m: _% g* Z$ L - } " q7 `; @7 @$ K- U* Z1 B# L5 P: e6 u
- } 9 A+ [) q, f2 z( U# v) N
-
r$ L# O1 W+ h) Z% @ - ]
复制代码如果是其它浏览器,可以 ctrl+shift+c 路径,然后直接在地址栏粘贴。
0 Y" k- V" ^+ s, B 这样就可以用这三个键在浏览中预览页面了: F12 : Firefox alt + F12 : IE ctrl + F12 : chrome 当然,你也可以配置,其它配置器用这样的方式预览。 & u( Q S1 R; {$ c6 o# j
: i8 v) E T' b- }+ n$ ]6 Y9 y; k1 q$ `* e' L
|