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...
Published   Apr 26, 2024
🌐
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 - Commit it to version control to maintain consistent formatting behavior: ... This ensures that Prettier is enabled in VS Code on save for everyone who clones the project; no need for manual setup. Tip: Commit the .vscode/settings.json file to your repository to share these settings across the team.
🌐
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...
Published   Oct 10, 2020
🌐
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
🌐
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.
Find elsewhere
🌐
JustAnswer
justanswer.com › computer › rd8ph-want-set-extension-prettier-vs-code-save.html
How to Set Prettier as VS Code Save Formatter?
Then enable 'Format On Save' by searching for 'format on save' and checking the box. Ensure Prettier extension is installed and updated. If conflicts occur, disable other formatting extensions.
🌐
GitHub
github.com › prettier › prettier-vscode › issues › 290
formatOnSave is not working · Issue #290 · prettier/prettier-vscode
October 14, 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...
Published   Dec 11, 2017
🌐
YouTube
youtube.com › bleepingworld
Prettier in VSCode - Install Code Formatter | Not Working Solved - YouTube
How to setup Prettier in VSCode and Configure Settings. If it is not working then follow along to resolve any issues.Prettier is a code formatter that can m...
Published   May 2, 2023
Views   21K
🌐
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 - Install it in your VSCode and whenever you want to temporarily disable Prettier on save, click on the "Formatting" toggle in the status bar. In the VSCode global settings, set this option to only allow running Prettier in the folders with Prettier ...
🌐
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.
🌐
Code with Mosh
forum.codewithmosh.com › t › prettier-no-longer-formatting-on-save › 12245
Prettier no longer formatting on save - Code with Mosh Forum
May 2, 2022 - I have had prettier for months now and it has always formatted on save and now for reason it stopped. Any ideas?
🌐
Robin Wieruch
robinwieruch.de › how-to-use-prettier-vscode
How to use Prettier in VS Code
Afterward, a JavaScript file should format automatically once you save it. Now you don't need to worry about your code formatting anymore, because Prettier takes care of it.
🌐
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....