Skip to main content
Better explanation
Source Link

I faced this problem and theseThese three steps solved mymay solve your problem:   

Prettier Doesn't format code

1 - Go to settings, then search for auto format

2 - Select Text Editor

3 - Select esbenp.prettier-vscode as your Default Formatter.

Simply said, go to Settings > User tab > Text Editor > Editor: Default Formatter and change it to prettier.

I faced this problem and these three steps solved my problem:  Prettier Doesn't format code

These three steps may solve your problem: 

Prettier Doesn't format code

1 - Go to settings, then search for auto format

2 - Select Text Editor

3 - Select esbenp.prettier-vscode as your Default Formatter.

Simply said, go to Settings > User tab > Text Editor > Editor: Default Formatter and change it to prettier.

Source Link

I faced this problem and these three steps solved my problem: Prettier Doesn't format code