prettier not working vscode code example

Example 1: prettier format on save not working

ext install esbenp.prettier-vscode

Example 2: prettier not working vscode

File > Preferences > Settings > Search for "default formatter"

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

Example 4: why prettier doesn't work vscode

check "format on Save": Setting >> User >> Text Editor >> Formatting
choose prettier as "default formatter" : Setting >> User >> Text Editor

Tags:

Misc Example