vs code运行html文件

(这里介绍一下,vs code里面不能新建文件夹,所以可以在外面创建文件夹,在vs code里面打开)
1、在没有安装任何插件的时候,运行项目时抛出一个错误:
    Code language not supported or defined.
解决办法:
File -》 Preference -》 Settings
vs code中运行html文件
设置好后,异常解决,但是还是无法在浏览器中打开html页面;

2、然后,安装插件:
vs code中运行html文件
插件安装完后点击右下角的 Go Live即可在浏览器中打开运行的html文件
vs code中运行html文件

相关文章: