1,点击设置,开发菜单栏选择扩展
选择插件同理
2,找到 Vetur扩展设置
3,在用户找到
4,加上如下代码
"vetur.format.defaultFormatter.html": "js-beautify-html",
"js-beautify-html": {
"wrap_line_length": 220,
"wrap_attributes": "auto",
"end_with_newline": false
},
格式如下
我的所有配置
{
"workbench.iconTheme": "material-icon-theme",
"editor.suggestSelection": "first",
"vsintellicode.modify.editor.suggestSelection": "automaticallyOverrodeDefaultValue",
"workbench.editorAssociations": {
"*.ipynb": "jupyter.notebook.ipynb"
},
"window.zoomLevel": -1,
"git.autofetch": true,
"git.confirmSync": false,
"editor.codeActionsOnSave": null,
"vetur.format.defaultFormatter.html": "js-beautify-html",
"vetur.format.defaultFormatterOptions": {
"js-beautify-html": {
"wrap_line_length": 220,
"wrap_attributes": "auto",
"end_with_newline": false
},
},
"gitlens.advanced.messages": {
"suppressCommitHasNoPreviousCommitWarning": true
},
}