1.打开vscode ——>首选项——>设置——>用户中找到Vetur——>在settings.json中编辑
2.添加以下代码
"typescript.validate.enable": false,
"vetur.format.defaultFormatter.html": "js-beautify-html",
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_line_length": 120,
"wrap_attributes": "auto",
"end_with_newline": false
}
}