配置在Chrome,Firefox中打开
安装 SideBarEnhancementsjavascript
而后经过ctrl + k, ctrl + b打开侧边栏,在侧边栏的文件中右击,找到 open width -> edit applicationsjava
而后在这里边设置firefox打开的方式。git
application : 路径要修改成本身默认安装的路径。
[
{"id": "side-bar-files-open-with",
"children":
[
//application firefox
{
"caption": "firefox",
"id": "side-bar-files-open-with-firefox",
"command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",
"extensions":".*" //any file with extension
}
},
{"caption":"-"},
{
"caption": "chrome",
"id": "side-bar-files-open-with-chrome",
"command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
"extensions":".*" //any file with extension
}
}
]
}
]
配置在IE中打开
Key bindings -> Usergithub
[
{ "keys": ["ctrl+shift+c"], "command": "copy_path" },
{ "keys": ["alt+f12"], "command": "open_in_browser" },
{ "keys": ["f12"], "command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "D:\\Program Files\\Mozilla Firefox\\firefox.exe",
"extensions":".*" //any file with extension
} },
{ "keys": ["ctrl+f12"], "command": "side_bar_files_open_with",
"args": {
"paths": [],
"application": "C:\\Program Files\\Google\\Chrome\\Application\\chrome.exe",
"extensions":".*" //any file with extension
}
}
]
若是是其它浏览器,能够 ctrl+shift+c 路径,而后直接在地址栏粘贴。chrome
这样就能够用这三个键在浏览中预览页面了:浏览器
F12 : Firefoxapp
alt + F12 : IEide
ctrl + F12 : chromepost
固然,你也能够配置,其它配置器用这样的方式预览。this