如何在vscode运行html文件

在vscode里面安装一个扩展叫做open in browser后在你写的代码里面右键点击open in default browser(快捷键:alt+b)
如下图:
如何在vscode运行html文件
如何在vscode运行html文件
然后就可以实现在vscode运行你的html文件啦~
网页就会显示在你的默认浏览器上~
喜欢的点个赞吧~

相关文章: