首页 > 其他 > 详细

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

时间:2021-03-31 16:33:25      阅读:49      评论:0      收藏:0      [点我收藏+]

在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"

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!