I recently updated VSCode and Prettier is not working anymore on my JS files. Before whenever I saved my JS files, Prettier would add the semicolons for me. Now when I save, no semicolons are added. I have the plugin enabled and checked the settings to make sure I have the semicolon insertions enabled. What could be causing this error?
Asked
Active
Viewed 5,054 times
4
-
Same here, prettier isn't working anymore where it still worked two days ago (didn't do an update). I've reinstalled vscode but that didn't help. – jnaklaas Oct 19 '20 at 11:11
1 Answers
7
This one worked for me:
- Select
View
->Command Palette
(or typeCMD
+shift
+P
) - Type:
Format Document
- Choose Prettier as your default formatter
Original answer: Why Prettier does not format code in VSCODE?

jnaklaas
- 1,619
- 13
- 16