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代码

相关文章:

  • 2022-12-23
  • 2021-04-25
  • 2021-07-02
  • 2022-02-18
  • 2021-07-12
  • 2022-01-06
  • 2022-12-23
  • 2021-04-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-01-02
  • 2021-07-04
  • 2021-06-11
相关资源
相似解决方案