安装 SideBarEnhancements 然后通过ctrl + k, ctrl + b打开侧边栏,在侧边栏的文件中右击,找到 open width -> edit applications 然后在这里边设置firefox打开的方式。
% Q5 s; X5 U& Oapplication : 路径要修改为自己默认安装的路径。! G9 [" L1 i" J. a% |/ j; ?5 m
- [
+ l7 M8 M# q- P$ t- W# b - {"id": "side-bar-files-open-with",! y- |6 k6 T* \
- "children":
( t2 E" N& B! q% h, i - [+ a9 x4 ~, d* I* m! D0 g
- //application firefox; ]" n0 K5 t- A0 h( S3 h
- {5 z% K! F$ A3 I
- "caption": "firefox",8 \0 _: K" }( Z
- "id": "side-bar-files-open-with-firefox",
: ` Y8 ~% f0 o
! L$ o! Y4 U$ S9 z3 @- "command": "side_bar_files_open_with",
' M8 i" f) f9 F6 v5 K) y2 R - "args": {0 B+ A% i$ `' d( e$ e
- "paths": [],
1 |4 H, r' k( w% M; F* L - "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",6 b, H% B: Z6 \0 l3 B
- "extensions":".*" //any file with extension5 g1 B( T, q; }# E# p. B/ ]
- }
2 M: h4 x' A/ f) O5 c - },) E7 t; q3 o2 Y
- * |# ]8 g- ?+ W+ V' r- L9 E. r: _
- {"caption":"-"},
# }% G& s, S) h9 a5 {7 O1 n" q - {
7 q T9 r9 f! ]% M. F - "caption": "chrome",4 y6 ^5 I x" c! W! V' Y9 M
- "id": "side-bar-files-open-with-chrome",
0 Q" k! J1 N: G# L0 G0 ?: N
8 c9 o$ X; m6 W( z5 F- "command": "side_bar_files_open_with",- X7 s# h3 A/ d1 X$ _$ x
- "args": {
, L. }: O- @. S) ~' X; ` - "paths": [],
: {9 ^2 H3 ]5 o7 {$ l6 l9 r9 f - "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
& C! h3 f; b+ \8 B& D5 C - "extensions":".*" //any file with extension
* i& [1 H* e, C3 S1 m0 h$ ? - }+ G& a2 J, p- x& {! h0 J! L
- }) q* z' @& |' \3 E5 S! t( S# v& W
- ]2 v9 M- y4 I& |5 u p
- }
) g$ x1 G& n. @4 N* c; a6 e - ]
复制代码 配置在IE中打开Key bindings -> User
0 o; \* X! U( ^0 b1 t5 z- [
! Y; P- ]' }% p2 R6 }" p9 O - { "keys": ["ctrl+shift+c"], "command": "copy_path" },: w+ I/ q# a0 P. b3 ] c2 x' j
- { "keys": ["alt+f12"], "command": "open_in_browser" },
0 ^( C% z/ N6 L# R - { "keys": ["f12"], "command": "side_bar_files_open_with",! ^; X. u& f4 h( O8 E+ D" g
- "args": {, B" W0 H3 y7 O8 v" F: @
- "paths": [],6 T. j4 U1 H& ^& C0 c$ b5 c* n1 [
- "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",
3 _0 A- i8 r% s6 m - "extensions":".*" //any file with extension
, l8 p0 _ |$ K5 l' q1 c5 D - } },$ v3 Y6 d, l5 g% u
- { "keys": ["ctrl+f12"], "command": "side_bar_files_open_with",) K o3 j! c+ j. k) A# ]% r
- "args": {9 r% Y' V8 Q& }
- "paths": [],6 }9 B5 J \- U$ O& {/ X/ Q
- "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
7 H) K; I: c* `( }4 `0 o( v - "extensions":".*" //any file with extension
o5 b2 A) q5 S D# K - } 7 x; x2 U) X: ?+ t6 ? S( F( t
- }
) t* s( y3 l8 S+ W. v -
% f2 k+ e7 R: W9 L - ]
复制代码如果是其它浏览器,可以 ctrl+shift+c 路径,然后直接在地址栏粘贴。
]8 O, G& [, C/ R. x$ B) u 这样就可以用这三个键在浏览中预览页面了: F12 : Firefox alt + F12 : IE ctrl + F12 : chrome 当然,你也可以配置,其它配置器用这样的方式预览。 4 r0 w9 H1 q W* n# x. F
n( t: n3 o, j
8 o: o$ V0 u1 @, h- P. [ |