1.按住 ctrl + shift + p 在首选项打开设置JSON
Open Setting(JSON)中配置如下
2.
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"editor.tabCompletion": "on",
"vetur.ignoreProjectWarning": true,
"vetur.validation.template": false,
"eslint.workingDirectories": [
{
"mode": "auto"
}
],