解决方法1
VSCode 中打开设置,搜索框输入format on save 找到"Editor: Format On Save"选项,取消勾选。但这种方式对本次无效果
解决方法2
解决方法1无效,后面查找资料发现是插件JS-CSS-HTML Formatter导致的,禁用这个插件并重载即可