在设置中找到settings.json中编辑
添加代码
// 这段代码对应的作用时提示html标签
"emmet.includeLanguages": {
"vue": "html",
"vue-html": "html",
"wxml": "html"
},
// 这段代码对应的作用是提示css
"files.associations": {
"*.vue":"html"
}
完成
———————————————————————————————————————————
新更新
由于css处的设置会将vue识别成html导致Vue VSCode Snippet插件不能使用,不能直接生成代码模板段
解决办法:
一:
将每个语言都重新设置为vue
二:
将css处代码改成vue依旧可以识别css代码且可以使用Vue VSCode Snippet插件。
// 这段代码对应的作用是提示css
"files.associations": {
"*.vue":"vue"
}