需要安装 open in browser插件

在mac上的visual studio code中在浏览器中运行html

在商店搜索open in browser 点击第一个 安装

 

 

此时在html文件中右键

在mac上的visual studio code中在浏览器中运行html

本文参考这篇文字  https://juejin.im/post/5cb87c6e6fb9a068a03af93a 
原文写的很详尽,好多我还没接触

相关文章: