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
🌐
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 - 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.
Find elsewhere
🌐
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.
🌐
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.
🌐
Robin Wieruch
robinwieruch.de › how-to-use-prettier-vscode
How to use Prettier in VS Code
Furthermore, if a project you are working on uses a local .prettierrc file for a local configuration, it can be used to override the global settings. That's what I'd recommend when working with multiple developers in a team on a project: ... That's it. You are formatting JavaScript files on save while being able to toggle off Prettier for individual projects.
🌐
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 ...
🌐
GitHub
github.com › prettier › prettier-vscode › issues › 290
formatOnSave is not working · Issue #290 · prettier/prettier-vscode
October 15, 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
🌐
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....
🌐
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
🌐
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
🌐
YouTube
youtube.com › watch
Prettier Not Working In Visual Studio Code? Try This - YouTube
Is Prettier not working in Visual Studio Code the way you expected? In this video, I’ll walk you through a quick fix to make sure your code formats automatic...
Published   June 10, 2025