Search code examples
visual-studio-codeprettier

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


My VS Code setting is

{
   "editor.formatOnSave": true,
}

It was working previously, but after the recent update, it stopped working.


Solution

  • Open the VS Code setting

    File -> Preferences -> Settings (for Windows)

    Code -> Preferences -> Settings (for Mac)

    Search for "Default Formatter". In the dropdown, prettier will show as esbenp.prettier-vscode

    Screenshot

    For more details kindly check this link