prettier format on save not working vscode code example

Example 1: prettier on save vscode

{
  "folders": [],
  "settings": {},
  "editor.formatOnSave": true,
}

Example 2: prettier format on save not working

ext install esbenp.prettier-vscode

Example 3: prettier format on save not working vscode

If you set prettier as default formater and formating on save doesnt work
-> format the file manualy using Shift+Alt+f

Example 4: prettier on save vscode

// Set the default"editor.formatOnSave": false,// Enable per-language"[javascript]": {    "editor.formatOnSave": true}

Example 5: prettier not working vscode

-> open visual studio code
-> go to view
-> open command palette
-> search for "format document with"
-> set prettier to default

Example 6: prettier format on save not working vscode

If you set prettier as default formater and formating on save doesnt work
-> format the file manualy using Shift+Alt+f