vscode vetur插件取消组件属性强制换行

2,862 阅读1分钟

vscode setting setting.json 在用户设置里面添加以下参数

"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_line_length": 120,
"wrap_attributes": "auto",
"end_with_newline": false
}
},
"vetur.format.defaultFormatter.html": "js-beautify-html"

(来自 https://blog.csdn.net/solocao/article/details/84641595 曹天骄)