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 › 2968
Restart Prettier action · Issue #2968 · prettier/prettier-vscode
April 18, 2023 - Unfortunately, as I use some Prettier plugins, Prettier VS Code extension stops working altogether, even after changing .prettierrc file. The only way to fix it is to restart the extension host altogether or reload the window.
Published   Apr 18, 2023
Discussions

I have done all kinds of things but my prettier does not format on save.
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 somet... More on github.com
🌐 github.com
3
April 26, 2024
Changes to prettier.config.js don't take effect until restarting vscode when using prettier v3
Under certain conditions, changes to prettier config don't take effect until restarting vscode. More on github.com
🌐 github.com
24
October 17, 2023
Neovim not formatting code correctly like VSCode does (prettier)
What things have you tried so far? Check if you have configured prettier in your VSCode settings. Neovim uses the same prettier binary that VSCode uses, and what it does is basically just pass your file as input and update it with the output, so if there’s a difference it’s because of prettier no because of Neovim, so I guess it might be the config. More on reddit.com
🌐 r/neovim
10
5
January 16, 2023
I deleted my settings.json file because the Prettier extension was not working.
bro, i suffered with this, just try disable all extensions, restart the vscode, and enable all extensions again, looks simple but worked here More on reddit.com
🌐 r/vscode
3
2
April 11, 2023
🌐
Visual Studio Marketplace
marketplace.visualstudio.com › items
Prettier - Code formatter - Visual Studio Marketplace
January 21, 2026 - Extension for Visual Studio Code - Code formatter using prettier
🌐
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 - To make sure Visual Studio Code uses Prettier for all formatting operations: Open Settings (JSON) via the Command Palette. ... You can apply this setting globally or in a workspace-specific .vscode/settings.json file.
🌐
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 - 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 to uninstall it completely then reinstall it but no way.
Published   Apr 26, 2024
🌐
DEV Community
dev.to › dmytrych › fixing-prettier-not-working-with-vscode-44ml
Fixing Prettier not working with VSCode - DEV Community
June 9, 2023 - In this article, we looked at possible problems with the integration of Prettier and VSCode.
🌐
Prettier
prettier.io › docs › editors
Editor Integration · Prettier
prettier-vscode can be installed using the extension sidebar – it’s called “Prettier - Code formatter.” Check its repository for configuration and shortcuts.
Find elsewhere
🌐
JustAnswer
justanswer.com › computer › rd8ph-want-set-extension-prettier-vs-code-save.html
How to Set Prettier as VS Code Save Formatter?
February 24, 2025 - To set Prettier as your default formatter in VS Code, open Settings (Ctrl+,), search for 'default formatter,' and select 'Prettier - Code 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. Restart VS Code to apply changes.
🌐
GitHub
github.com › prettier › prettier-vscode › issues › 3179
prettier/prettier-vscode
October 17, 2023 - https://github.com/russelldavis/repro-vscode-prettier-stale-config ... Modify prettier.config.cjs (e.g., change tabWidth to 8) and save the file. Run Format Document on any file. The document should be formatted using the updated config. The document is formatted using the old config. To make the new config take effect, you have to reload the window or restart vscode.
Published   Oct 17, 2023
🌐
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.
🌐
Visual Studio Marketplace
marketplace.visualstudio.com › items
Prettier ESLint - Visual Studio Marketplace
Extension for Visual Studio Code - A Visual Studio Extension to format JavaScript and Typescript code using prettier-eslint package
🌐
Prettier
prettier.io › docs › cli
CLI · Prettier
To run your locally installed version of Prettier, prefix the command with npx, yarn exec, pnpm exec, or bunx, i.e.
🌐
Reddit
reddit.com › r/neovim › neovim not formatting code correctly like vscode does (prettier)
r/neovim on Reddit: Neovim not formatting code correctly like VSCode does (prettier)
January 16, 2023 -

I'm new to Vim/NeoVim in general, and just started using LazyVim which I'm really liking so far.

I was trying to use Neovim on some projects at work however one big blocker I'm having at the moment is that Neovim and VSCode format code differently.

VSCode formats it correctly, using the prettier config, but Neovim seems to format things in its own way entirely, not respecting the project config.

I've tried a few things to try and get this to work, but is there some setting or config I'm missing? I've installed prettier via Mason if that helps.

Thanks for any help!

🌐
GitHub
github.com › prettier › prettier-vscode › issues › 584
Reloading / Restarting Window is the only way to apply config file · Issue #584 · prettier/prettier-vscode
September 18, 2018 - I'm using a .prettierrc.yml config at project root to override my Workspace Settings. But whenever I edit the setting, the only way for VSCode to pick up those new settings is to reload the project. VSCode: 1.27.2 Prettier: 1.6.1
Published   Sep 18, 2018
🌐
GitHub
github.com › prettier › prettier-vscode
GitHub - prettier/prettier-vscode: Visual Studio Code extension for Prettier · GitHub
Controls whether prettier is enabled or not. You must restart VS Code when you change this setting.
Author   prettier
🌐
HumanKode
humankode.com › javascript › set-up-prettier-and-vs-code-to-format-your-code
Set up Prettier and VS Code to Format Your Code
March 28, 2025 - In this tutorial, I'll show you how to set up prettier with VS Code so that documents are automatically formatted when you save a file.
🌐
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