首先你需要安装插件View In Browser
按下crtl+alt+p打开命令行,输入install package,等一会弹出输入框输入View In Browser,回车并安装
找到perefrence->package setting->view in browser,将setting defult 里面的浏览器路径配置拷贝到setting user里面,如下:
{
"nt": {
"win32": {
"firefox": "D:\\各种软件\\firefox\\firefox.exe",
"iexplore": "C:\\Program Files\\Internet Explorer\\iexplore.exe",
"chrome": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe",
"chrome64": "C:\\Program Files (x86)\\Google\\Chrome\\Application\\chrome.exe",
"yandex": "%Local AppData%\\Yandex\\YandexBrowser\\browser.exe"
}
},
"browser": "chrome64"
}
系统默认的快捷键是ctrl+alt+v打开浏览器,如果你想修改成为自己的快捷键,就按照如下方法
打开首选项里的快捷键设置在user里面修改如下:
代码是:
[
{ "keys": ["Ctrl+Alt+F"],"command": "view in browser", "args": { "browser": "firefox"} },
]
现在就好了