使用快捷键打开设置:
ctrl + shift + p
然后输入setting
替换成以下配置
{ "window.zoomLevel": 1, "files.associations": { "*.wpy": "vue", "*.cjson": "jsonc", "*.wxss": "css", "*.wxs": "javascript" }, "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" } } }