在设置--> vetur --> settings.json --> 添加如下代码
{"vetur.format.defaultFormatter.html": "js-beautify-html", "emmet.includeLanguages": { "wxml": "html" }, "minapp-vscode.disableAutoConfig": true, "explorer.confirmDelete": false, "vetur.format.options.tabSize": 4, "vetur.format.defaultFormatterOptions":{ "js-beautify-html":{ "wrap_attributes":"auto" } } }