美文网首页
vscode代码格式化

vscode代码格式化

作者: 南漂一枚 | 来源:发表于2020-07-04 17:11 被阅读0次

{

  "vetur.format.options.tabSize": 2,

  "vetur.format.options.useTabs": false,

  "vetur.format.defaultFormatter.html": "js-beautify-html",

  "vetur.format.defaultFormatter.js": "vscode-typ=script",

  "vetur.format.defaultFormatterOptions": {

    "prettyhtml": {

      "printWidth": 100, // No line exceeds 100 characters

      "singleQuote": false // Prefer double quotes over single quotes

    },

    "js-beautify-html": {

      "wrap_attributes": "auto",

      "wrap_attributes_mode": "auto",

      "wrap-line-length": 130,

      "wrapped_attributes_per_line": "multiple",

      "wrapped_attributes_indent": "auto",

      "wrapped_attributes_end": "auto"

    }

  }

}

其中。  "wrap-line-length": 130,是控制换行的距离

https://blog.csdn.net/weixin_37263797/article/details/104681889

相关文章

网友评论

      本文标题:vscode代码格式化

      本文链接:https://www.haomeiwen.com/subject/nlnuqktx.html