vscode格式化代码换行?试试这个配置

时间:2021-03-31 16:33:25   收藏:0   阅读:49

在setting.json中把下面的配置项拷上去

"vetur.format.defaultFormatterOptions": {
    "js-beautify-html": {
         "wrap_line_length": 900, // 数值越大,一行放的属性越多
         "wrap_attributes": "auto",
         "end_with_newline": false
     },
     "prettyhtml": {
         "printWidth": 100,
         "singleQuote": false,
         "wrapAttributes": false,
         "sortAttributes": false
     }
 },
 "vetur.format.defaultFormatter.html": "js-beautify-html",
 "vetur.format.defaultFormatter.js": "vscode-typescript"

原文:https://www.cnblogs.com/zoo-x/p/14601074.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!