【小记事】如何设置vscode代码格式化时不要自动换行
最近一格式化就给我分好多行,好气哦(`?´)=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。
相关推荐
yuwinter 2012-05-16
大前端 2016-11-15
blackeagleoht 2020-05-07
tozeroblog 2020-06-09
swency 2011-05-13
XUELEI00 2013-08-06
wufan0 2019-06-27
softwear 2019-06-27
87201943 2012-09-06
FORLIVEFORLIFE 2013-01-16
zgzczzw 2017-09-06
coderMozart 2018-02-23
coderMozart 2018-03-01
lispython 2016-03-23
Pythonandme 2019-04-19
JasonThinking 2012-12-28
舜岳 2011-01-12