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
🌐
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 ...
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
🌐
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.
🌐
Oxidation Compiler
oxc.rs › blog › 2026-02-24-oxfmt-beta
Oxfmt Beta
2 weeks ago - Oxfmt is a Rust-powered, Prettier-compatible code formatter built for the JavaScript ecosystem.
🌐
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.
🌐
Visual Studio Code
code.visualstudio.com › docs › copilot › customization › hooks
Agent hooks in Visual Studio Code (Preview)
1 month ago - { "hooks": { "PreToolUse": [ { "type": "command", "command": "./scripts/validate-tool.sh", "timeout": 15 } ], "PostToolUse": [ { "type": "command", "command": "npx prettier --write \"$TOOL_INPUT_FILE_PATH\"" } ] } } Each hook entry must have type: "command" and at least one command property: Note ·
Find elsewhere
🌐
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
🌐
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.
🌐
SourceForge
sourceforge.net › projects › prettier-formatter-vsc.mirror
Prettier Formatter for Visual Studio download | SourceForge.net
January 21, 2026 - Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary.
🌐
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
🌐
npm
npmjs.com › package › prettier
prettier - npm
January 21, 2026 - Prettier is an opinionated code formatter. Latest version: 3.8.1, last published: a month ago. Start using prettier in your project by running `npm i prettier`. There are 20147 other projects in the npm registry using prettier.
      » npm install prettier
    
Published   Jan 21, 2026
Version   3.8.1
Author   James Long
🌐
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.
🌐
Open VSX
open-vsx.org
Open VSX Registry
We cannot provide a description for this page right now
🌐
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.
🌐
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.
🌐
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.