【小记事】如何设置vscode代码格式化时不要自动换行
时间:2020-05-11 23:35:40
收藏:0
阅读:640
最近一格式化就给我分好多行,好气哦(`?´)=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。
原文:https://www.cnblogs.com/MaiJiangDou/p/12872851.html
评论(0)