文件===>首选项===>设置 设置里搜索vetur(前提是你已经装了这个插件了) vetur.format.defaultFormatter.html 在下面找到上面这个选项原本 none 改成 js-beautify-html 保存后再试试 shift + alt + f