打開:VSCode --> Code --> 首選項 --> 設置javascript
切換settings.json格式 html
選擇須要設置的文件夾 vue
複製代碼java
{
/**
* eslint
*/
"workbench.startupEditor": "welcomePage",
"eslint.autoFixOnSave": true,
"eslint.validate": [
"javascript",
"javascriptreact",
{
"language": "html",
"autoFix": true
},
{
"language": "vue",
"autoFix": true
}
],
}
複製代碼