"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,}Copy the code
If the default formatting plug-in is not configured
If you use Alt + Shift + F, the configuration will be manually selected. For example, if you select Vetur, the configuration will automatically add the following content
"[vue]": {
"editor.defaultFormatter": "octref.vetur"
},
Copy the code