配置在Chrome,Firefox中打開
然後通過ctrl + k, ctrl + b打開側邊欄,在側邊欄的文件中右擊,找到 open width -> edit applications
然後在這裏邊設置firefox打開的方式。
{"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
當然,你也可以配置,其它配置器用這樣的方式預覽。
轉自:http://www.cnblogs.com/jikey/archive/2013/03/12/2955230.html