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

首先 ctrl + shift + p 换出设置

对格式进行管理

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

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

posted @ 2021-06-29 17:10  mayufo  阅读(345)  评论(0编辑  收藏  举报