In VSCode, hit CTRL + SHIFT + P, write Preferences: Open User Settings (JSON) and hit enter, it will open up your settings.json:

Make sure prettier is your default formatter:

"editor.defaultFormatter": "esbenp.prettier-vscode"

you can set it for specific languages e.g: for typescript:

"[typescript]": {
    "editor.defaultFormatter": "esbenp.prettier-vscode"
},
Answer from Riadh Adrani on Stack Overflow
🌐
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
🌐
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.
Discussions

reactjs - Prettier not working on save from within Visual Studio Code - Stack Overflow
Just a hint, make sure that your javascript/typescript formatter is set to esbenp.prettier-vscode, in your settings.json. More on stackoverflow.com
🌐 stackoverflow.com
Extension 'prettier.prettier-vscode' is configured as formatter but not available. Select a different default formatter to continue.
After updating to V3 of plugin, altering all my references to prettier.prettier-vscode, and moving preferences into package.json now after an update it says Extension 'prettier.prettier-vscode&... More on github.com
🌐 github.com
8
November 13, 2019
Prettier does not work as default formatter in VS Code 1.57.1 on Windows.
Summary I have the Prettier extension installed, have the prettier npm package installed globally and in this project. It seems as though the Prettier extension is not starting and is missing in th... More on github.com
🌐 github.com
19
June 29, 2021
Should I stop using a code formatter (such as Prettier in VScode)?
There should be a setting to format only the modified lines instead of the entire file. That way, all your new code will be autoformatted but you won't have all the unrelated changes. More on reddit.com
🌐 r/learnprogramming
6
1
April 12, 2021
🌐
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 - Note: If you do not see a prompt for selecting a default formatter, you can manually set Prettier as the default formatter in VS Code. Open your Settings and set Editor: Default Formatter to esbenp.prettier-vscode.
🌐
Microsoft Learn
learn.microsoft.com › en-us › shows › visual-studio-toolbox › using-eslint-and-prettier-in-visual-studio-code
Using ESLint and Prettier in Visual Studio Code | Microsoft Learn
May 9, 2024 - Josh shows how you can use ESLint to set rules for your JavaScript/TypeScript code and how you can easily format it. He uses VS Code here, but you can do the same things in Visual Studio. Chapters 00:00 - Introduction 02:10 - Configuring VS Code to run ESLint and Prettier 03:15 - Running ESLint ...
🌐
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
Find elsewhere
🌐
GitHub
github.com › prettier › prettier-vscode › issues › 1052
Extension 'prettier.prettier-vscode' is configured as formatter but not available. Select a different default formatter to continue. · Issue #1052 · prettier/prettier-vscode
November 13, 2019 - After updating to V3 of plugin, altering all my references to prettier.prettier-vscode, and moving preferences into package.json now after an update it says Extension 'prettier.prettier-vscode&...
Published   Nov 13, 2019
🌐
Tailwind CSS
tailwindcss.com › docs › editor-setup
Editor setup - Getting started - Tailwind CSS
Cursor is an AI-native code editor with features like context-aware autocomplete and built-in coding agents. Since it supports VS Code extensions, all of the Tailwind CSS tooling you're already familiar with works out of the box – including our official Tailwind CSS IntelliSense extension and the Prettier plugin for class sorting.
🌐
GitHub
github.com › prettier › prettier-vscode › issues › 2047
Prettier does not work as default formatter in VS Code 1.57.1 on Windows. · Issue #2047 · prettier/prettier-vscode
June 29, 2021 - Summary I have the Prettier extension installed, have the prettier npm package installed globally and in this project. It seems as though the Prettier extension is not starting and is missing in the VS Code status bar. When I try to save...
Published   Jun 29, 2021
🌐
Medium
medium.com › @kiran.jasvanee › prettier-auto-formatting-in-visual-studio-code-beab1c026b13
Prettier Auto Formatting in Visual Studio Code. | by Kiran Jasvanee | Medium
March 22, 2020 - Select Format Document With and again you will be asked for few options. Select Prettier — Code Formatter and your file will be formatted.
🌐
Reddit
reddit.com › r/learnprogramming › should i stop using a code formatter (such as prettier in vscode)?
r/learnprogramming on Reddit: Should I stop using a code formatter (such as Prettier in VScode)?
April 12, 2021 -

I’ve been doing an internship lately, and have been using Prettier code formatter in my editor.

Often when I make just a small change to their code base there ends up being hundreds of other lines which get changed as well due to Prettier.

Then in GitHub, instead of seeing the one small change, there are many changes... even after excluding white space.

I can imagine this would make things more difficult for the code reviewer.

Should I just disable Prettier? Or at least disable things like line-wrapping, etc.?

🌐
Cpojer
cpojer.net › posts › fastest-frontend-tooling
Fastest Frontend Tooling for Humans & AI | Christoph Nakazawa
2 weeks ago - Read https://oxc.rs/docs/guide/usage/formatter/migrate-from-prettier.md. Update all scripts, tools, and hooks to use Oxfmt. Remove all Prettier configuration files and reformat the code using Oxfmt. I recommend installing the Oxc VS Code extension via code --install-extension oxc.oxc-vscode.
🌐
Prettier
prettier.io
Prettier · Opinionated Code Formatter · Prettier
prettier-vscode · Built-in support · Got more?Send a PR · See others · Regularly used by: More than 83% of respondents to State of JS 2021. More than 70% of respondents to State of JS 2020. More than 9.9 million dependent repositories on GitHubCheck Them Out ·
🌐
Drupal Consultations
kamranafzal.com › home › ai › how to format your code automatically in vs code using prettier
How to Format Your Code Automatically in VS Code Using Prettier - Drupal Consultations
July 20, 2025 - Prettier is an opinionated code formatter that helps developers maintain a consistent style across their codebase by automatically reformatting code whenever you save.
🌐
MangoHost
mangohost.net › mangohost blog › format code with prettier in visual studio code
Format Code with Prettier in Visual Studio Code
August 3, 2025 - When integrated with Visual Studio Code, it automatically formats your JavaScript, TypeScript, CSS, HTML, JSON, and dozens of other file types according to predefined rules, eliminating debates about code style and reducing time spent on manual formatting. This guide will walk you through setting up Prettier in VS Code, configuring it for different workflows, comparing it with alternatives, and troubleshooting common issues that developers encounter during implementation.
🌐
Robin Wieruch
robinwieruch.de › how-to-use-prettier-vscode
How to use Prettier in VS Code
February 14, 2022 - How to install Prettier for VS Code (Visual Studio Code). Install Prettier, configure it globally to format on save, add further Prettier configuration on a global level, and use a local .prettierrc file ...
🌐
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 - I find when using Prettier, along with the Format On Save option in VS Code, I don’t think about how to format my code anymore. I don’t ever wonder “oh should I put this on multiple lines or keep it all in one line?” Instead, I focus on solving my problem, hit Save and let Prettier do the rest.
🌐
GitHub
github.com › prettier › prettier-vscode › releases
Releases · prettier/prettier-vscode
Visual Studio Code extension for Prettier. Contribute to prettier/prettier-vscode development by creating an account on GitHub.
Author   prettier
🌐
Khalil Stemmler
khalilstemmler.com › blogs › tooling › prettier
How to use Prettier with ESLint and TypeScript in VSCode | Khalil Stemmler
January 21, 2022 - In this guide, we'll explain how to use Prettier with ESLint, delegating the responsibility of code convention definition to ESLint, and the responsibility of formatting to Prettier.
🌐
React
react.dev › learn › editor-setup
Editor Setup – React
Integrate ESLint in VSCode with the official extension · Make sure that you’ve enabled all the eslint-plugin-react-hooks rules for your project. They are essential and catch the most severe bugs early. The recommended eslint-config-react-app preset already includes them. The last thing you want to do when sharing your code with another contributor is get into a discussion about tabs vs spaces! Fortunately, Prettier will clean up your code by reformatting it to conform to preset, configurable rules.