vsCode格式化标签属性不换行

文件👉首选项👉设置   👉工作区 粘贴以下代码

"vetur.format.defaultFormatter.html": "js-beautify-html",
  "vetur.format.defaultFormatter.js": "vscode-typ=script",
  "vetur.format.defaultFormatterOptions": {
    "js-beautify-html": {
      "wrap_attributes": "auto"
    },
    "prettyhtml": {
      "printWidth": 100,
      "singleQuote": false,
      "wrapAttributes": false,
      "sortAttributes": false
    }
  },

  

posted @ 2020-06-12 10:26  番茄西红柿u  阅读(7006)  评论(2)    收藏  举报