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
🌐
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 - Type: Bug 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 t...
Author   Tochiskool
Discussions

Format on Save (prettier) stopped working with latest update
Format on Save (prettier) stopped working with the latest update Multiple time reinstalled Prettier, and checked the settings, it happened right after the update of VSCode. https://gyazo.com/f07a3b... More on github.com
🌐 github.com
86
October 10, 2020
VS-Code Prettier Format On Save doesn't work - Stack Overflow
For about a month now, my Prettier extension has stopped working as it normally does. Most notably - format on save does not work. Other notes: Format on typing a ; works I get this error type sym... More on stackoverflow.com
🌐 stackoverflow.com
reactjs - Prettier not working on save from within Visual Studio Code - Stack Overflow
It appears the formatting via keyboard and formatting from the menu are not on the same page, but I don't know why. Below are my exact detailed steps... From Visual Studio Code 1.75.1 I installed ... More on stackoverflow.com
🌐 stackoverflow.com
prettier - problems with code formatting on save in vscode - Stack Overflow
Bring the best of human thought and AI automation together at your work. Explore Stack Internal ... I have vscode installed and also the prettier extension. In settings I select the option format on save. However, when saving the formatting of the code does not happen, I have to activate the ... More on stackoverflow.com
🌐 stackoverflow.com
🌐
GitHub
github.com › microsoft › vscode › issues › 108447
Format on Save (prettier) stopped working with latest update · Issue #108447 · microsoft/vscode
October 10, 2020 - Format on Save (prettier) stopped working with the latest update Multiple time reinstalled Prettier, and checked the settings, it happened right after the update of VSCode. https://gyazo.com/f07a3b...
Author   ivanjeremic
🌐
Scott Sauber
scottsauber.com › 2017 › 06 › 10 › prettier-format-on-save-never-worry-about-formatting-javascript-again
Prettier + Format On Save = Never worry about formatting JavaScript again – Scott Sauber
June 12, 2021 - The Prettier -JavaScript Formatter plugin for VS Code simply shells out to Prettier. It also respects the Format on Save option I mentioned in my last blog post. Note: Make sure you have prettier installed in the project you’re working in or globally via npm install prettier -g
🌐
Bobby Hadz
bobbyhadz.com › blog › fix-prettier-not-working-in-vs-code
How to fix Prettier Extension not working in VS Code | bobbyhadz
You might also have the setting in your package.json file which also takes precedence over your global config. Another thing you can try is to reinstall the Prettier extension: Click on Extensions in the left sidebar.
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 - Try disabling other VSCode extensions. Conflicting extensions can interfere with Prettier.
🌐
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.
🌐
Gleb Bahmutov
glebbahmutov.com › blog › configure-prettier-in-vscode
How to configure Prettier and VSCode | Better world by better software
April 23, 2024 - For example, the screenshot below shows that Prettier did not run because the project does not have Prettier configuration file like .prettierrc. If everything else fails, quit VSCode and start it again. Here is a little animation that shows a file being saved with Prettier setting "trailingComma: true", yet the comma gets deleted somehow. Check if there are OTHER code formatting extensions installed and disable them for this workspace.
🌐
GitHub
github.com › prettier › prettier-vscode › issues › 290
formatOnSave is not working · Issue #290 · prettier/prettier-vscode
December 10, 2017 - After upgrade version to v1.0.0, the vscode setting formatOnSave is not working on my machine. But when I changeprettier.eslintIntegration to true, the auto-format is working. Are there some changes not listed on the Changelog between th...
Author   kpman
🌐
DeveloperF1
developerf1.com › snippet › prettier-stopped-working-in-vs-code
Fix: Prettier stopped working in VS Code - DeveloperF1.com
September 5, 2023 - If no default formatter is defined ... or using the menu item File -> Preferences -> Settings · Type format on save into the search field and check if it is selected....
🌐
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 - You can apply this setting globally or in a workspace-specific .vscode/settings.json file. Prettier supports a wide range of file types out of the box, including: ... Prettier can be configured to automatically format any of these file types on save, provided the file extension is recognized and the formatter is correctly assigned in your VS Code settings. There are several possible reasons why Prettier is not ...
🌐
tutorialpedia
tutorialpedia.org › blog › vs-code-prettier-format-on-save-doesn-t-work
VS Code Prettier Format On Save Not Working After Upgrading to v3: Troubleshooting Guide — tutorialpedia.org
Extension compatibility: Older versions of the esbenp.prettier-vscode extension (VS Code’s Prettier plugin) may not work with Prettier v3. These changes can silently break "Format On Save" if your setup isn’t aligned with v3’s requirements.
🌐
Robin Wieruch
robinwieruch.de › how-to-use-prettier-vscode
How to use Prettier in VS Code - Robin Wieruch
February 14, 2022 - "editor.formatOnSave": true "prettier.singleQuote": true, "prettier.printWidth": 70, "[javascript]": { "editor.defaultFormatter": "esbenp.prettier-vscode" }, After setting up this configuration, Prettier makes sure that only single quotes are used and that the line length is set to the given number of characters. However, be aware that this applies to every project now. If you happen to work on a project with a team where the project does not use Prettier, you will format every file once you save it.
🌐
GitHub
github.com › prettier › prettier-vscode › issues › 3948
Plugin not running or formating on save in v12 (Cursor) · Issue #3948 · prettier/prettier-vscode
January 22, 2026 - I revert to v11.0.0 and it immediately ... https://github.com/asb1512/prettier-vscode-plugin-demo · Make sure you have the latest version of the Prettier VSCode plugin installed in Cursor IDE....
Author   asb1512