已经在 .editorconfig 中添加了下面的规则,但 vscode 依然对 ts 代码中的双引号 "..." 置之不理
[*.ts]
quote_type = single
        在项目的 .vscode/settings.json 配置文件中将
{
  "[typescript]": {
    "editor.defaultFormatter": "vscode.typescript-language-features"
  }
}
改为
{
  "[typescript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
  }
}
解决了