我有以下.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,
但是它仍然做同样的事情。
什么是没有这种行为的格式化程序?