1.安装插件 eslint 与 prettier
- 打开 settings.json
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
-
file -> Preferences -> setting ,设置默认的Formatter
1.安装插件 eslint 与 prettier
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
file -> Preferences -> setting ,设置默认的Formatter