首先 ctrl + shift + p 换出设置
ctrl + shift + p
对格式进行管理
"files.associations": { "*.cjson": "jsonc", "*.wxss": "css", "*.wxs": "javascript", "*.wxml": "html" },
再去设置中搜索 html.format.wrapAttributes 设置成 force-aligned
html.format.wrapAttributes
force-aligned