command+shift+p 搜索 Configure Task Runner. 回車以後打開 tasks.json,修改一下:
{ "version": "0.1.0", "command": "Chrome", "osx": { "command": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome" }, "args": [ "${file}" ] }
切換回想打開的html文件,經過快捷鍵command+shift+b就能夠直接調用系統默認瀏覽器來運行HTML代碼