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
🌐
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.
🌐
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.
Find elsewhere
🌐
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
October 7, 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 ...
🌐
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
🌐
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