VS Code Prettier Format On Save 在 2020 年 10 月的最新更新中停止工作

VS Code Prettier Format On Save stopped working with latest update Oct 2020

我的 VS Code 设置是

{
   "editor.formatOnSave": true,
}

之前可以用,最近更新后就不行了。

打开 VS Code 设置

文件 -> 首选项 -> 设置(针对 Windows)

代码 -> 首选项 -> 设置(针对 Mac)

搜索“默认格式化程序”。在下拉列表中,prettier 将显示为 esbenp.prettier-vscode

有关详细信息,请查看此 link