1.格式化代码:vue 使用 Vetur插件 文件->首选项:粘贴 { "prettier.tabWidth": 4, "vetur.format.defaultFormatter.html": "prettier" }