1.vscode 安装 vetur 插件
2.文件->首选项->设置搜索–vetur->format->default formatter:html 设置为:js-beautify-html
3.将以下代码放到settings.json中
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_attributes": "auto",
"wrap_line_length": 12000,
"end_with_newline": false
}
},
路漫漫其修远兮,吾将上下而求索。加油!