配置在Chrome,Firefox中開啟
安裝 SideBarEnhancements
然後通過ctrl + k, ctrl + b開啟側邊欄,在側邊欄的檔案中右擊,找到 open width -> edit applications
然後在這裡邊設定firefox開啟的方式。
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 -> User
[
{ "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 路徑,然後直接在地址欄粘貼。
這樣就可以用這三個鍵在瀏覽中預覽頁面了:
F12 : Firefox
alt + F12 : IE
ctrl + F12 : chrome
當然,你也可以配置,其它配置器用這樣的方式預覽。