vscode配置html环境
vscode配置html
·
首先,下载拓展 live server和open in browser
live serve 可以直接打开默认浏览器,open in browser 分为打开默认和其它,但是live server相对快一些。
测试代码
<!DOCTYPE html>
<html>
<head>
<title>HelloWorld</title>
</head>
<body>
HelloWorld!
</body>
</html>
<html>
<head></head>
<body>
222
</body>
</html>
运行结果
推荐将Chrome设置为默认浏览器
下面是设置默认浏览器方法。
更多推荐
已为社区贡献1条内容
所有评论(0)