1:随后查询资料,发现还需要安装新插件 HTML Snippets ,然后进行 setting.json 文件配置:
”文件“—”首选项“—”设置“—”文本编辑器“点击”建议“点击”在settings.json中编辑“,如下图:
配置 setting.json 文件,黄色圈框中:
代码复制:
"emmet.syntaxProfiles": {
"vue-html":"html",
"vue":"html"
},
//vue自动补全
"files.associations": {
//extension name : html
"*.vue":"html",
"*.ejs":"html",
"*.js":"html",
}
文章评论