左上角文件-首選項(xiàng)點(diǎn)開(kāi)讳嘱,選擇設(shè)置疫铜。在用戶(hù)設(shè)置下搜索vetur,打開(kāi)settings.json
放入下面的配置保存:
"vetur.format.defaultFormatter.html": "js-beautify-html",
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_line_length": 120,
"wrap_attributes": "auto",
"end_with_newline": false
}