在编辑器中找到 文件 > 首选项 > 设置 打开settings.json,配置如下代码:
{
"workbench.colorTheme": "Atom One Dark",
"[vue]": {
"editor.defaultFormatter": "octref.vetur"
},
"editor.quickSuggestions": {
"strings": true
},
"window.zoomLevel": 0,
"files.associations": {},
"vetur.format.defaultFormatter.html": "js-beautify-html",
"editor.formatOnSave": true,
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_attributes": "auto",
}
},
"editor.formatOnSave": true,
"settingsSync.ignoredSettings": [],
"cssrem.rootFontSize": 80,
"editor.codeActionsOnSave": null,
}