安装 SideBarEnhancements 然后通过ctrl + k, ctrl + b打开侧边栏,在侧边栏的文件中右击,找到 open width -> edit applications 然后在这里边设置firefox打开的方式。 1 }: \- T6 ~7 v5 r1 b
application : 路径要修改为自己默认安装的路径。: J Y, M( _( J% C9 b5 L
- [
% P, F! n8 |6 j - {"id": "side-bar-files-open-with",
1 @* e {0 r: H. y' h. a - "children":
8 g' c7 C( g6 U - [5 }: }2 b+ V; I7 \: Z
- //application firefox
4 @) S3 E$ J! Y! I - {* L0 X5 r% G3 F. x! `% a- E. Q
- "caption": "firefox",2 m: j: v, N( Y5 [+ T- G. _3 n
- "id": "side-bar-files-open-with-firefox",+ @7 U8 K( ~9 U1 B) i
$ D# Q5 p$ I2 t* A* C4 o2 [# `% g- "command": "side_bar_files_open_with",6 `, o2 y v+ t# t' [ g
- "args": {
* v8 F2 W( a) i - "paths": [],6 K" T$ J! ^# B* M- D
- "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",+ _9 L4 ~- |4 S+ |
- "extensions":".*" //any file with extension
1 X8 C! X" ?. Z/ Q - }9 Q6 v, j4 \ V
- },
2 k4 O0 q/ ?5 J! q0 x1 n( Z, a
6 z! V3 g4 l0 [! r) D- {"caption":"-"},
3 [9 l2 a+ l5 {$ N1 G - {
' x* Q& }- M+ U& A, R+ T) k4 e - "caption": "chrome",! [, b+ {% N" [% p
- "id": "side-bar-files-open-with-chrome",
4 s1 s, K) R# L! M% m - % C" Y( R. C/ c/ f/ e0 n$ ~
- "command": "side_bar_files_open_with",
* z2 N& M* D3 ~9 g7 j; A& m - "args": {
( Z, A/ c: O1 H2 |6 o3 j - "paths": [],) f8 @5 A/ w$ b6 q8 h$ I7 O
- "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
; i$ l$ [" h( K6 }1 ] - "extensions":".*" //any file with extension) C2 H5 h/ [% W& {2 z* V8 Y: `+ a
- }
; X, Q; f" q$ f1 z6 d; w - }- u4 X: x, n" G) o
- ]0 R7 G: s4 ^3 t, C( I: {9 T: m; `$ [
- }
9 H8 A5 S9 Y/ U - ]
复制代码 配置在IE中打开Key bindings -> User
( w D6 |7 x# O% q& a- [! t' M' [" g7 G. e
- { "keys": ["ctrl+shift+c"], "command": "copy_path" },
4 L& m6 e+ f8 ^& w( `' b! M - { "keys": ["alt+f12"], "command": "open_in_browser" },8 ^9 d- B0 N& L J0 V0 [1 h+ P7 ]5 x: I
- { "keys": ["f12"], "command": "side_bar_files_open_with",
3 a: {; s) r: K# [+ O: @* c7 h0 d5 z - "args": {
# W8 ?0 B+ f9 y - "paths": [],; z& E7 ^& ]- h& R/ h
- "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",* I; R* \5 ^: P
- "extensions":".*" //any file with extension
+ Y0 P" l8 _6 B( _ - } },
- k" |8 z& V) x" Y/ }# g - { "keys": ["ctrl+f12"], "command": "side_bar_files_open_with",4 y" M1 i7 c' J* Z* z9 b
- "args": {
; x/ a2 d; A% Z! M7 n$ _* P0 _ - "paths": [],
- Y; c3 W8 P/ K- F* z - "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
* a$ ?* s0 ]* ]& ?8 ]$ B - "extensions":".*" //any file with extension
: u% s" j$ H/ X. _' r - } ' ^6 y, z H, Q- Q/ E
- } 6 s7 q0 `+ t( B( S
- " f7 y0 K! s; @9 z8 t4 W7 r" ~
- ]
复制代码如果是其它浏览器,可以 ctrl+shift+c 路径,然后直接在地址栏粘贴。
" Y' i) M7 n7 O4 T7 h) @$ A: \ 这样就可以用这三个键在浏览中预览页面了: F12 : Firefox alt + F12 : IE ctrl + F12 : chrome 当然,你也可以配置,其它配置器用这样的方式预览。
* E. r- p4 Q& L+ C7 \- V5 o
3 ?$ C3 S0 p+ [2 Z/ G% k+ Q" h1 r) c2 P& `4 h- I
|