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?
1 Answer
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?