配置在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