prettier not working code example
Example 1: prettierrc
{
"trailingComma": "es5",
"tabWidth": 4,
"semi": false,
"singleQuote": true
}
Example 2: 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 3: prettier not working vscode
-> open visual studio code
-> go to view
-> open command palette
-> search for "format document with"
-> set prettier to default