安装 SideBarEnhancements 然后通过ctrl + k, ctrl + b打开侧边栏,在侧边栏的文件中右击,找到 open width -> edit applications 然后在这里边设置firefox打开的方式。
% P0 Q, a u: a I! x) H1 U" M- l- q0 iapplication : 路径要修改为自己默认安装的路径。
?! P; _, ]+ v9 H5 v- [
D+ d. k- u' ]: J - {"id": "side-bar-files-open-with",
# K7 h7 [5 ~, V0 k - "children":
7 f n; k3 @* y& n6 Z4 a - [% v6 I2 r) n6 ^ p
- //application firefox
" c* `. `: b t o' ^ - {
3 C) }. f7 l. |. S5 m - "caption": "firefox",
5 K2 k$ R5 j% T3 C" a" R - "id": "side-bar-files-open-with-firefox",
0 `/ {: Y& Q: s C - ' N( o: R* h3 Z: r9 X+ L5 ~
- "command": "side_bar_files_open_with",
/ j# ]! P$ j+ X4 q! J6 b - "args": {
( n/ Q# Y% c) ~; C - "paths": [],
5 [- @1 ^) m( p - "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",
- n" |! U# e* F& t2 U) p' F - "extensions":".*" //any file with extension
3 d- c4 W5 G- R' [# T* z3 l - }3 U) n ~+ ?5 C; R$ l1 Q
- },3 ]' W( v2 q6 Y) A; s5 G% F% ~# ?' e$ K
i5 T+ y- J% i" j- {"caption":"-"},
! \/ U7 i' v, L8 [! u: W+ j# T - {
" o3 H. r( h% [! \7 I - "caption": "chrome",
. A: O4 M0 n9 e- \ - "id": "side-bar-files-open-with-chrome",
- U5 `* E4 j7 @ ]0 u; V3 D+ B
i1 E' f8 \( q- "command": "side_bar_files_open_with",6 @ J# x: Y) m8 I, x0 [! d7 i
- "args": {1 P* _$ u# ]- @1 ?
- "paths": [],
9 K* @+ o1 w( s3 q8 x - "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
6 S9 n& J, P$ v b - "extensions":".*" //any file with extension
. e% W4 H- E* w% P - }
) [% Z0 `$ L- g. n7 V! ~. T - }
2 g! S$ g8 E z' n. t+ ~- X - ]
7 ^% n% m* _! N7 ^ - }
6 u8 V2 e% e2 v% [- w, ?) u - ]
复制代码 配置在IE中打开Key bindings -> User' I4 z" I1 Q+ D% c% @; A
- [
. f# N1 W( F7 J8 Q: n8 x k - { "keys": ["ctrl+shift+c"], "command": "copy_path" },) M$ E: ^7 A6 y: H
- { "keys": ["alt+f12"], "command": "open_in_browser" },
/ A# q7 `8 {! q* I - { "keys": ["f12"], "command": "side_bar_files_open_with",6 I ~1 l6 w, v [: k2 e
- "args": {$ X2 u8 L( b+ V8 W. o' y
- "paths": [],( P4 T) x( e ] S
- "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",
/ A# H& W, O$ P+ r! M - "extensions":".*" //any file with extension2 I4 G" i& F$ h$ B" V
- } },
7 a' I3 B9 Z( }. r( T# u - { "keys": ["ctrl+f12"], "command": "side_bar_files_open_with",% L8 Q$ ~9 L8 D T$ f- {
- "args": {
7 u0 `/ m+ |" D/ [; h9 h - "paths": [],
/ u( {0 |6 p' Z' B, W1 o - "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
5 ?' l. z" J3 D2 u- K' B n - "extensions":".*" //any file with extension/ d+ }- d! Q& {+ _8 t
- } * ]5 q( w. t) o, [
- } 5 _) L N# \" R m1 O" O3 R
- 2 T5 m/ V8 G: L; T
- ]
复制代码如果是其它浏览器,可以 ctrl+shift+c 路径,然后直接在地址栏粘贴。' x1 n7 ?7 L) E2 _# Z' u, j
这样就可以用这三个键在浏览中预览页面了: F12 : Firefox alt + F12 : IE ctrl + F12 : chrome 当然,你也可以配置,其它配置器用这样的方式预览。 , R) Y" S2 G" d/ u& L# r
1 {- i( u9 g, Q$ e8 U+ H% R/ K! W3 D5 B( N% g
|