Ctrl+shift+p 打開Configure Task Runner 回車之后打開tasks.json,替換成
{
// See http://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version":"0.1.0",
"command":"Chrome",//使用chrome瀏覽器
"windows": {
"command":"C:/Program Files (x86)/Google/Chrome/Application/chrome.exe"http://chrome瀏覽器的路徑
},
"isShellCommand":true,
"args": ["${file}"],//表示對(duì)當(dāng)前文件進(jìn)行操作
"showOutput":"always"
}
Ctrl+shift+b快捷鍵運(yùn)行html