1. 打开setting
首选项 > 设置 > 输入setting搜索
2. 设置setting
在setting文件中添加如下
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.format.enable": true,
"eslint.validate": ["javascript", "vue", "html"]
首选项 > 设置 > 输入setting搜索
在setting文件中添加如下
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"eslint.format.enable": true,
"eslint.validate": ["javascript", "vue", "html"]