小程序开发中 在 wxml格式化 属性断行

首先 ctrl + shift + p 换出设置

技术图片

对格式进行管理

 "files.associations": { "*.cjson": "jsonc", "*.wxss": "css", "*.wxs": "javascript", "*.wxml": "html" },

再去设置中搜索 html.format.wrapAttributes
设置成 force-aligned

相关文章