安装 SideBarEnhancements 然后通过ctrl + k, ctrl + b打开侧边栏,在侧边栏的文件中右击,找到 open width -> edit applications 然后在这里边设置firefox打开的方式。
3 c# `: Q3 T9 l/ J% h( Aapplication : 路径要修改为自己默认安装的路径。
" `" G8 F$ x" G* j4 V% W2 H" \% }- [
4 t t$ `* W4 Q _6 e5 B - {"id": "side-bar-files-open-with", v) @: e) A# F9 F5 k1 ~
- "children":* P! ] \ r0 `4 ]! c
- [3 Z8 q& `1 m8 D C$ R. c
- //application firefox+ |6 _* C& y) H6 O, K t
- {
" H' K: B" v& v4 ` - "caption": "firefox",
% O+ X5 ~9 X s4 @; @0 d - "id": "side-bar-files-open-with-firefox",; D( [# X/ X% r& `1 ~
/ y- h2 Q# K, N# Q* Q- "command": "side_bar_files_open_with",9 p' `, b( Q( v4 |' w0 `
- "args": {
: m2 f" L6 F1 m+ X - "paths": [],
% Q7 ~4 O8 j& g - "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",
+ U) E- N [* x, s& `; l - "extensions":".*" //any file with extension
& {* o9 l) G7 t) p - }
% R% D. I# e" z4 e2 X. o - },
, B y6 ]' @* m H" V2 _# g' Z - ' i2 \& p& s3 q B6 A: K
- {"caption":"-"},
6 v. F* W' _5 U& X1 G. E) m1 Z, R - {- ?5 [. g; D! b9 D' C
- "caption": "chrome",
8 X/ c! g7 b& z4 d' J! D, w4 L - "id": "side-bar-files-open-with-chrome",1 U- z6 |) d% G3 Z
3 e E v, O' f& p7 ?# |4 F0 P- "command": "side_bar_files_open_with",
. y0 x9 F/ I, b& Q. ~9 l! H* [ - "args": {
: m+ y0 w& c }6 I6 j - "paths": [],9 Z; T1 {# H2 G& l3 I; b# L; }6 g
- "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",. f! g4 G9 o4 d4 z* O6 ^- L; ~- X6 D
- "extensions":".*" //any file with extension
. d' P* D6 M: n ]; B, c - }
- Q7 y$ w6 I' z, w b8 x& L; i - }
+ t! Y$ y) z9 t8 J. G, m, B - ]& H9 Q/ F6 l. I7 g! r7 A
- }
. b: i# T& K0 _4 n! t - ]
复制代码 配置在IE中打开Key bindings -> User
) F+ r3 ]$ J9 u* R/ Q1 ?! L% H* _' S- [
( N$ ]. k u5 s - { "keys": ["ctrl+shift+c"], "command": "copy_path" },
# H$ I1 U; y0 {. }3 A8 e! C y$ G9 r - { "keys": ["alt+f12"], "command": "open_in_browser" },9 c }$ l7 A: C0 m4 M
- { "keys": ["f12"], "command": "side_bar_files_open_with",
4 T7 [2 V X& X8 J8 M- X% J+ V - "args": {6 T* J6 n Q# y; o
- "paths": [],
: }" V; n8 V3 z! d K: J! e* L5 V0 y - "application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",- s0 K, _6 ?% f) y' r3 z( P
- "extensions":".*" //any file with extension
% e( f4 V+ a+ g7 D - } },2 }3 |4 q6 `0 J! ?& ~
- { "keys": ["ctrl+f12"], "command": "side_bar_files_open_with",% q, t3 A) {4 \8 u
- "args": {
0 C! |3 o" p) o- k6 J - "paths": [],4 |5 k+ M- s: I+ K# R0 b
- "application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",7 z, I( f% Y( `0 l5 \& F
- "extensions":".*" //any file with extension' {" t4 {! R1 w7 e7 C
- }
I" A' x* } ?5 F0 E# q - } 3 t1 P+ k3 i+ S: P! A
- % L4 E3 m! T% D; t1 ~8 {
- ]
复制代码如果是其它浏览器,可以 ctrl+shift+c 路径,然后直接在地址栏粘贴。' Z& S& U/ {5 T# M
这样就可以用这三个键在浏览中预览页面了: F12 : Firefox alt + F12 : IE ctrl + F12 : chrome 当然,你也可以配置,其它配置器用这样的方式预览。
, C2 {) f4 w# f- ?
2 q3 l* x) W9 z- {9 }- S ?8 {$ z
( e5 l8 b( J# z2 g |