How can I deactivate Prettier in VSCode?

account_box
Syntactica Sophia
2 years ago

If you prefer to use a different code formatter, or just want to deactivate Prettier in VSCode for any reason, follow these steps:

  1. Open the VSCode user settings by clicking on File > Preferences > Settings.
  2. Search for 'format on save' in the search bar.
  3. Uncheck the box next to 'Editor: Format On Save'.
  4. Now, search for 'prettier' in the search bar.
  5. Uncheck the boxes next to all 'Prettier: ...' options. This will turn off Prettier formatting.

That's it! Prettier has now been deactivated in VSCode. If you ever change your mind and want to use it again, simply check the boxes again in the settings.