My VS Code setting is
{
"editor.formatOnSave": true,
}
It was working previously, but after the recent update, it stopped working.
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
For more details kindly check this link