1. Select File -> Preferences -> Settings (Ctrl + comma) and search form formatter
  2. Set Prettiers as Default formatter.

If above does not work:

ctrl+shift+p > Format Document With... > Configure Default Formatter... > Prettier - Code formatter

This also work with ctrl+shift+I

Answer from Miha on Stack Overflow
🌐
Bobby Hadz
bobbyhadz.com › blog › fix-prettier-not-working-in-vs-code
How to fix Prettier Extension not working in VS Code | bobbyhadz
Type default formatter and in the Editor: Default Formatter, make sure to select Prettier - Code formatter as your default formatter. Make sure that all checkboxes of languages are checked as shown in the following screenshot.
🌐
GitHub
github.com › prettier › prettier-vscode › issues › 1156
Prettier Extension Not working in VS Code · Issue #1156 · prettier/prettier-vscode
December 20, 2019 - Running the contributed command: 'prettier.openOutput' failed. I am getting this error on VS code.
Published   Dec 20, 2019
🌐
SheCodes
shecodes.io › athena › 8760-troubleshooting-prettier-formatter-not-working-after-restarting-vs-code
[VS Code] - Troubleshooting Prettier Formatter Not Working After Restarting VS Code
Learn how to resolve the issue of Prettier formatter not working even after restarting Visual Studio Code with these troubleshooting tips.
🌐
GitHub
github.com › prettier › prettier-vscode › issues › 3382
I have done all kinds of things but my prettier does not format on save. · Issue #3382 · prettier/prettier-vscode
April 26, 2024 - I installed prettier, on user I checked format on save and checked the config. Well it does not format on save I have followed all kinds of videos but it doesnot work. I think I did something wrong with the path. I even tried to uninstall it completely then reinstall it but no way.
Published   Apr 26, 2024
🌐
GitHub
github.com › prettier › prettier › issues › 16102
Issues with prettier-vscode not working properly with plugins since prettier 3.1.0 release · Issue #16102 · prettier/prettier
February 20, 2024 - Install the prettier-vscode plugin in vscode, install any plugin, for example prettier-xml, set prettier-xml as the formatter for xml files, configure .prettierrc (or another config file), attempt to use prettier for formatting xml.
Published   Feb 20, 2024
Find elsewhere
🌐
DEV Community
dev.to › dmytrych › fixing-prettier-not-working-with-vscode-44ml
Fixing Prettier not working with VSCode - DEV Community
June 9, 2023 - Prettier can be configured to disable parsing for certain file types - so check that the required files are not included in the prettier-ignore file. Also, check that your file extension is spelled correctly. Also, make sure that the settings correspond to the programming language you are using. Try disabling other VSCode extensions.
🌐
DeveloperF1
developerf1.com › snippet › prettier-stopped-working-in-vs-code
Fix: Prettier stopped working in VS Code - DeveloperF1.com
September 5, 2023 - Type default formatter into the search field and check if it is set to Prettier · Alternative: You can also check if the default formatter is set correctly by simply forcing VSCode to format your code. To do click into the code editor and from the context menu select the Format Document option.
🌐
DigitalOcean
digitalocean.com › community › tutorials › how-to-format-code-with-prettier-in-visual-studio-code
Format Code with Prettier in Visual Studio Code: Setup Guide | DigitalOcean
August 1, 2025 - To open the command palette, press Command + Shift + P on macOS or Ctrl + Shift + P on Windows. In the command palette, search for format and then choose Format Document. You may then be prompted to choose a formatter. Click the Configure button: Then, select Prettier – Code Formatter. Note: If you do not see a prompt for selecting a default formatter, you can manually set Prettier as the default formatter in VS Code. Open your Settings and set Editor: Default Formatter to esbenp.prettier-vscode...
🌐
GitHub
github.com › prettier › prettier-vscode › issues › 3104
prettier 3.0 and prettier-vscode v10.1.0 won't load plugins · Issue #3104 · prettier/prettier-vscode
August 1, 2023 - OS and version: macOS 14.0 Beta (23A5276g) ["ERROR" - 18:34:42] Error handling text editor change ["ERROR" - 18:34:42] Error resolve node module 'prettier-plugin-organize-imports' Error: Error resolve node module 'prettier-plugin-organize-imports' at n (/Users/lewisflude/.vscode/extensions/esbenp.prettier-vscode-10.1.0/dist/extension.js:1:2718) at /Users/lewisflude/.vscode/extensions/esbenp.prettier-vscode-10.1.0/dist/extension.js:1:3068 at Array.map (<anonymous>) at t.resolveConfigPlugins (/Users/lewisflude/.vscode/extensions/esbenp.prettier-vscode-10.1.0/dist/extension.js:1:3003) at t.Module
Published   Aug 01, 2023
🌐
Stack Exchange
salesforce.stackexchange.com › questions › 379000 › prettier-not-working-in-vs-code
salesforcedx - Prettier not working in VS code - Salesforce Stack Exchange
You can enter commands that npm install --save-dev prettier and run them in your current project,Then edit your .vscode/settings.json file as shown
🌐
Reddit
reddit.com › r/vscode › why my vs code pettier not working ?
r/vscode on Reddit: Why my VS code pettier not working ?
March 13, 2021 -

I have been searching google for several hours.

Many user have similar problem with me. https://stackoverflow.com/questions/52586965/why-does-prettier-does-not-format-code-in-vs-code/64273353#64273353

But none of the solution works for me.

https://imgur.com/2ssn1Vt

I have prettier installed. And I have tried the following

1.Command + Shift + p

2.type format document with

3.select Configure Default Formatter...

https://imgur.com/xw5oYvS

Then I cant select Prettier as default.

I only give me Python(default) as the only option.

I have a setting.json inside my root. Is it related?

https://imgur.com/KbEdsOV

🌐
GitHub
github.com › prettier › prettier-vscode › issues › 51
can't get this to work · Issue #51 · prettier/prettier-vscode
March 16, 2017 - Installed with VSCode 1.9.1 on Ubuntu, reloaded, CTRL-SHIFT-P brings up VSCode's command palette, it doesn't format the code. Typing "prettier" in the command palette doesn't bring up anything. VSCode's Problems and Output panes don't sh...
Published   Mar 16, 2017
🌐
GitHub
github.com › prettier › prettier-vscode › issues › 3906
No longer eligible as formatter for many types of files · Issue #3906 · prettier/prettier-vscode
January 16, 2026 - https://github.com/prettier/prettier-vscode · Update your extensions and restart IDE · Open any .vue / .js / .ts file · Attempt to format (fail) Open commands --> Format Document With...
Published   Jan 16, 2026
🌐
freeCodeCamp
forum.freecodecamp.org › t › why-prettier-extention-is-not-working-on-vscode › 629475
Why Prettier extention is not working on VScode? - The freeCodeCamp Forum
August 13, 2023 - Please help me! I’ve downloaded the Prettier extension in Vscode for auto indentation and Auto formation by watching this video. But it is not working when i press save or (ctrl+S). what should i do?
🌐
JanBask Training
janbasktraining.com › community › salesforce › what-to-do-when-prettier-not-working-vscode
What to do when prettier not working vscode? | JanBask Training Community
May 2, 2023 - In case of prettier not working vscode - try this "npm install --save-dev --save-exact prettier" Upvote 0 · Downvote 0 · Salesforce (1353) Salesforce Lightning (25) Development (82) Business Analyst (260) QA Testing (438) Manual Testing (45) ...