默认格式化程序在我的html中删除分号

问题描述

我有以下.vscode

{
  "editor.formatOnSave": true,"editor.defaultFormatter": "esbenp.prettier-vscode","editor.codeActionsOnSave": {
    "source.fixAll.tslint": true,"source.fixAll.stylelint": true
  },"typescript.tsdk": "node_modules/typescript/lib"
}

和以下html

<span style="margin-right: 10px;">

保存时,它变成了我不需要的<span style="margin-right: 10px">(不再用分号)。

我尝试删除所有设置,仅保留"editor.formatOnSave": true,

但是它仍然做同样的事情。

什么是没有这种行为的格式化程序?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)

相关问答

错误1:Request method ‘DELETE‘ not supported 错误还原:...
错误1:启动docker镜像时报错:Error response from daemon:...
错误1:private field ‘xxx‘ is never assigned 按Alt...
报错如下,通过源不能下载,最后警告pip需升级版本 Requirem...