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
🌐
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 › 1044
Add back status bar icon · Issue #1044 · prettier/prettier-vscode
September 24, 2019 - Summary Prettier - Code Formatter updated from 2.3 to 3.3.1 and it disappeared from VS Code status bar. Now I need to open explicitly Output console to watch prettier messages there. Also right click menu on VS Code status bar doesn't co...
Published   Nov 12, 2019
🌐
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.
🌐
Bobby Hadz
bobbyhadz.com › blog › fix-prettier-not-working-in-vs-code
How to fix Prettier Extension not working in VS Code | bobbyhadz
If there are any issues with your ... can't see the prettier button in the Status Bar, right-click on the Status Bar at the bottom and make sure the Prettier option is ticked....
🌐
Stack Overflow
stackoverflow.com › questions › 58230776 › prettier-is-not-working-in-react-code-and-disappeared-in-status-bar
Prettier is not working in React Code and disappeared in status bar - Stack Overflow
sorry if this question is dumb. I'm coming from Sublime Text and recently been using VSCode for my React projects. I noticed there was a Prettier status with tick or cross in the status bar but I've noticed it's not showing anymore and showing JavaScript Standard Style Instead.
🌐
Gleb Bahmutov
glebbahmutov.com › blog › configure-prettier-in-vscode
How to configure Prettier and VSCode | Better world by better software
April 23, 2024 - Open .vscode/settings.json file and confirm: VSCode Prettier extension is configured as the default formatter. ... Prettier extension might be disabled by VSCode. Make sure the word "Prettier" appears on the Status Bar and has check mark symbol ...
🌐
Prettier
prettier.io › docs › editors
Editor Integration · Prettier
It’s important to install Prettier ... and shortcuts. If you’d like to toggle the formatter on and off, install vscode-status-bar-format-toggle....
Find elsewhere
🌐
GitHub
github.com › prettier › prettier-vscode › issues › 438
[Edited] Option to hide status bar item · Issue #438 · prettier/prettier-vscode
February 22, 2018 - I notice that there is a "Prettier" status bar item at the right bottom corner when editing Markdown file. Clicking on it will open an empty output panel. But when editing JS/CSS files, t...
Published   May 04, 2018
🌐
YouTube
youtube.com › code commerce
How to fix Prettier Extension in VS Code - YouTube
I just updated VS Code and my prettier extension (to format all of my code) was not working. I didn't realize how much I needed this extension! Fortunately ...
Published   February 19, 2022
Views   23K
🌐
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.
🌐
Stack Overflow
stackoverflow.com › questions › 62897227 › prettier-didnt-appear-on-status-bar-in-vs-code-for-minified-file-on-server
Prettier didn't appear on status bar in VS Code for minified file on server
But when I'm debugging some minified javascript on server, prettier didn't appear on the status bar, the Ctrl+Alt+F shortcut didn't work, Ctrl+Shift+P can't find the "Format Document" option either. If I copied that minified javascript content and save it as a js file on my local machine, then opened it in VS Code, prettier will show up on status bar and works well.
🌐
SheCodes
shecodes.io › athena › 45484-prettier-not-showing-up-in-vs-tab-in-vs-code
[VS Code] - Prettier not showing up in VS tab in VS Code - | SheCodes
Learn how to troubleshoot when Prettier is not showing up in the VS tab in VS Code and how to install and enable the Prettier extension.
🌐
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 › 161
Prettier status bar should be hidden for unsupported languages · Issue #161 · prettier/prettier-vscode
Hi. I like the new error panel but would prefer it to be hidden when I don't work with JavaScript. Currently it's always shown. Maybe this can be solved by bringing back proper activationEvents to package.json?
🌐
GitHub
github.com › prettier › prettier-vscode › issues › 2703
please provide option to remove the status bar item · Issue #2703 · prettier/prettier-vscode
September 5, 2022 - But things like AmVim plugin and Git Blame are specifically showing information about the current action, so they are always useful at all times. Prettier at most just displays some general information about the open file, and uses up more horizontal space than similarly general status bar items located on the right (spacing, encoding, end of line sequence). Also, annoyingly, it always appears no matter what file you have open - even when it's not JavaScript and thus can never be formatted using Prettier anyway.
Published   Sep 05, 2022
🌐
GitHub
github.com › prettier › prettier-vscode › issues › 3363
Use LanguageStatusItem API for the status bar item · Issue #3363 · prettier/prettier-vscode
Use VS Code's LanguageStatusItem API instead of having a unique implementation that is inconsistent with other language utility extensions and formatters. It's easy to show/hide when the user wants it (can pin to the status bar too) rather than ...
🌐
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 - 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.
🌐
Stack Overflow
stackoverflow.com › questions › 74707135 › how-do-i-fix-prettier-failing-to-format-when-it-indicates-an-error-and-turns-red
visual studio code - How do I fix Prettier failing to format when it indicates an error and turns red in the status bar? - Stack Overflow
To cause this, I tried formatting my work on Visual Studio Code with prettier and when I pressed the save button, the color of the extension in the status bar switched from blue to red, and no formatting takes place.