4

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?

default settings

enabled settings

semicolons enabled

1
  • 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
    Commented Oct 19, 2020 at 11:11

1 Answer 1

7

This one worked for me:

  1. Select View -> Command Palette (or type CMD + shift+ P)
  2. Type: Format Document
  3. Choose Prettier as your default formatter

Original answer: Why Prettier does not format code in VSCODE?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.