最近一格式化就给我分好多行,好气哦(`ヘ´)=3

在setting.json中添加如下代码:

"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
        }
 },

---------------END。

相关文章:

  • 2021-08-18
  • 2022-12-23
  • 2021-10-04
  • 2022-02-07
  • 2022-12-23
  • 2021-12-16
  • 2022-01-02
  • 2021-06-03
猜你喜欢
  • 2022-02-07
  • 2021-07-08
  • 2021-05-07
  • 2022-02-07
  • 2021-06-09
  • 2021-06-02
相关资源
相似解决方案