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

时间:2020-09-21 02:44:15

标签: typescript visual-studio-code tslint prettier

我有以下.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,

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

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

0 个答案:

没有答案