插件
vue文件语法高亮
vetur
ctrl+p
ext install vetur
文件->首选项->设置
"emmet.syntaxProfiles": {
"vue-html": "html",
"vue": "html"
}
支持vue文件的eslint
需要环境配置
npm install -g eslint
npm install -g eslint-plugin-html
"eslint.validate": [
"javascript",
"javascriptreact",
"html",
"vue"
],
"eslint.options": {
"plugins": ["html"]
},
在项目根目录下创建 .eslintrc.json,快捷键ctrl +shift+p eslint
task
https://code.visualstudio.com/docs/editor/tasks#vscode