Are you trying to start a war? LOL The configurable options in prettier are there because they are too controversial for there to be one universally accepted standard. It's all personal opinion. Answer from CreativeTechGuyGames on reddit.com
🌐
Fraser Boag
boag.online › notepad › post › full-prettier-prettierrc-config
My full Prettier (.prettierrc) config file - Fraser Boag
It sets almost every configurable option - some of which are set to the same as Prettier's own defaults, but I like to include them just for clarity and so that I can see at a glance what options I have available to me for tweaking. { "arrowParens": "always", "bracketSpacing": true, "htmlWhitespaceSensitivity": "css", "insertPragma": false, "jsxBracketSameLine": false, "jsxSingleQuote": true, "printWidth": 80, "proseWrap": "always", "quoteProps": "as-needed", "requirePragma": false, "semi": true, "singleQuote": true, "tabWidth": 2, "trailingComma": "all", "useTabs": false }
🌐
npm
npmjs.com › package › prettier-config-standard
prettier-config-standard - npm
A Prettier shareable config for projects using 'Prettier' and 'JavaScript Standard Style' as ESLint rules or separate processes.. Latest version: 7.0.0, last published: 3 years ago.
      » npm install prettier-config-standard
    
Published   Aug 11, 2023
Version   7.0.0
Author   Nick Petruzzelli
🌐
Prettier
prettier.io › docs › options
Options · Prettier
To run, JavaScript code formatted this way needs an engine that supports ES2017 (Node.js 8+ or a modern browser) or downlevel compilation. This also enables trailing commas in type parameters in TypeScript (supported since TypeScript 2.7 released in January 2018). "es5" - Trailing commas where valid in ES5 (objects, arrays, etc.). Trailing commas in type parameters in TypeScript and Flow. ... Print spaces between brackets in object literals. ... Configure how Prettier wraps object literals when they could fit on one line or span multiple lines.
🌐
GitHub
github.com › prettier › prettier-vscode › issues › 3179
Changes to prettier.config.js don't take effect until restarting ...
October 17, 2023 - ["INFO" - 2:43:18 PM] Extension Version: 10.1.0. ["DEBUG" - 2:43:18 PM] Enabling Prettier globally { "languageSelector": [ { "language": "javascript" }, { "language": "mongo" }, { "language": "javascriptreact" }, { "language": "typescript" }, { "language": "typescriptreact" }, { "language": "json" }, { "language": "jsonc" }, { "language": "json5" }, { "language": "css" }, { "language": "postcss" }, { "language": "less" }, { "language": "scss" }, { "language": "handlebars" }, { "language": "graphql" }, { "language": "markdown" }, { "language": "mdx" }, { "language": "html" }, { "language": "vue
Published   Oct 17, 2023
🌐
Reddit
reddit.com › r/reactjs › what is your go to prettierrc configs?
r/reactjs on Reddit: What is your go to prettierrc configs?
March 16, 2022 -

Or am I an old geezer and folks have moved on from prettier?

Whats the best way to get some nice on save features in vs code if not prettier?

If prettier, what are you settings? (single quotes, line width, etc)

Nothing better than writing dog shit and clicking save and seeing it reformat to perfection

🌐
GitHub
github.com › prettier › eslint-config-prettier
GitHub - prettier/eslint-config-prettier: Turns off all rules that are unnecessary or might conflict with Prettier. · GitHub
Just like ESLint itself, you can control the eslint-config-prettier CLI helper tool using the ESLINT_USE_FLAT_CONFIG environment variable: ESLINT_USE_FLAT_CONFIG=true: Only use eslint.config.js (flat config).
Author   prettier
🌐
Michael Currin
michaelcurrin.github.io › dev-cheatsheets › cheatsheets › javascript › format-and-lint › prettier › configure.html
Config files | Dev Cheatsheets
Example config with one rule in it: .prettierrc.json · { "arrowParens": "avoid" } Some more rules. .prettierrc.json · { "trailingComma": "es5", "tabWidth": 4, "semi": false, "singleQuote": true } See the Ignoring rules cheatsheet for more info. You can also pass command line flags to change Prettier behavior.
Find elsewhere
🌐
GitHub
gist.github.com › adbutterfield › 6b91625b5b07ca2c29f6322245e3e2bb
Default prettier config with comments and links to prettier rules · GitHub
People can configure prettier options inside their personal vscode settings, which can then create thrashing in projects that don't assert defaults. ... @devinrhode2 In our case I wanted the local formatting for the developers in the team to match the formatting that occurs when running npm run format (prettier --write) in our pre-commit hook. With that said I noticed that the rangeEnd attribute requires an Integer value. Using a js file format, setting the attribute to Infinity works fine.
🌐
Blitzjs
legacy.blitzjs.com › docs › prettier-config
Custom Prettier Config - Blitz.js
By default, new Blitz apps configure prettier using the "prettier" key in the package.json file
🌐
npm
npmjs.com › package › eslint-config-prettier
eslint-config-prettier - npm
Add eslint-config-prettier to your ESLint configuration – either to eslintrc or to eslint.config.js (flat config).
      » npm install eslint-config-prettier
    
Published   Jul 18, 2025
Version   10.1.8
Author   Simon Lydell
🌐
Michelelarson
michelelarson.com › prettier-config
Prettier Config Generator
I've made a few things for fun: GUMDROPS GumGum React Component Library PRETTIER CONFIG UI to generate a Prettier config HOME COUNTDOWN Chrome extension tells you how long until you can leave work and go home RUBBER DUCK DEBUGGING When your code won't work and you just need someone to talk ...
🌐
JetBrains
jetbrains.com › help › webstorm › prettier.html
Prettier | WebStorm Documentation
Make sure a local Node.js runtime is configured in your project: open the Settings dialog (Ctrl+Alt+S) and go to Languages & Frameworks | JavaScript Runtime. The Node runtime field shows the default project Node.js runtime.
Top answer
1 of 1
15

Correct Prettier Extension


There are many prettier extensions to choose from, but only one is the official prettier extension that was written by the same people who maintain prettier. You want to make sure that you have the OFFICIAL PRETTIER EXTENSION.

  • HERE IS THE LINK TO THE OFFICIAL PRETTIER EXTENSION

  • To verify that it is the official extension, its unique extension ID will be: "esbenp.prettier-vscode".

  • The link shows the official extensions page in the Visual Studio website view, you will probably want to download it inside of your editor as opposed to installing it via a VSIX file.



  • You need to configure your default formatter in a generalized way to be able to format JavaScript & HTML. Your trying to specify configurations on a per language basis, which is usually the wrong thing to do if your trying to configure a formatter to format more than one language or file type. You just want prettier to be set as the default formatter, as opposed to the default formatter for HTML, there is a big difference between the two. One formats all languages, the other formats HTML only. for all of VS Code.

  • We also want to make sure that prettier is the formatter we are equipping. Currently you don't have the correct formatter configured. Your trying to use VS Codes Languag-features formatter to get the Prettier formatter to work.


I have included two examples of configuring your default formatter below.
  1. The first example shows the improper configuration that you are currently using. Which configures the formatter specific to a file extension, and it is configuring the wrong formatter

  2. The second configuration is the CORRECT CONFIGURATION TO USE. It configures the Official Prettier Formatting Extension for all of VSCode.



#1

The example below shows what NOT to do!
    /** @file "settings.json" */

    {
        "[html]": {
           "editor.defaultFormatter": "vscode.html-language-features"
    }

The incorrect configuration above does two things wrong.

  1. "vscode.html-language-features" is not the correct extension ID. You need to use the prettier formatter's extension ID. The Prettier extension id is as follows "esbenp.prettier-vscode"

  2. Your configuring the formatter to work for HTML files only.

    • "[HTML]":{ // settings ... } <-- adding prettier to that block configures prettier to only work if a file extension ends in HTML. The problem is, HTML doesn't always get placed in an .html document.

For the context of this question, it isn't technically wrong, but its not the best configuration to use when trying to troubleshoot the issue, instead; you should just set your default formatter as Prettier across all languages. Then once you get Prettier working, you can use settings that specify the languages you want to use it for, and languages you don't want to use it for.



#2

This snippet shows the CORRECT configuration to use
  /** @file "settings.json" */

  {
      "editor.defaultFormatter": "esbenp.prettier-vscode",
      "editor.formatOnSave": true,
  }

Notice that I added format on save? You want that so when you press CTRL + S your code is formatted.



Another thing you don't want to do is configure prettier in your settings.json file.

DONT DO THIS

/** @file "settings.json" */

{
    "prettier.arrowParens": "avoid",
    "prettier.jsxBracketSameLine": true,
    "prettier.bracketSpacing": true,
    "prettier.embeddedLanguageFormatting": "auto",
    "prettier.htmlWhitespaceSensitivity": "css",
    "prettier.insertPragma": false,
    "prettier.jsxSingleQuote": true,
    "prettier.printWidth": 100,
    "prettier.proseWrap": "preserve",
    "prettier.quoteProps": "as-needed",
    "prettier.requirePragma": false,
    "prettier.semi": true,
    "prettier.singleQuote": false,
    "prettier.tabWidth": 2,
    "prettier.trailingComma": "es5",
    "prettier.useTabs": true,
    "prettier.vueIndentScriptAndStyle": false,
}

WHAT YOU WANT TO DO TO CONFIGURE PRETTIER, IS ADD A .prettierrc CONFIGURATION FILE TO EVERY PROJECT.


  1. The prettier configuration file is named ".prettierrc"

  2. The .prettierrc file should be placed in the ROOT directory of your project.

  3. Add the following to your ".prettierrc" document.

{
  "trailingComma": "es5",
  "tabWidth": 4,
  "semi": false,
  "singleQuote": true
}

Here is the link to Prettier's page that shows all available configurations you can add to your prettier file.

At this point Prettier should be working

If prettier isn't working, then you are going to need to get the debugging information about why it isn't working from the prettier extension. Prettier outputs this information for you, but you have to know how to get it.



Getting Debugging Info from the V.S. Code Prettier Extension


NOTE: Stack overflow requires debugging details for every question about an issue. If prettier isn't working getting these debugging details will help you ask your question without people giving you to hard of a time on here.

Add the following setting to your settings.json file

"prettier.enableDebugLogs": true

then open your terminals panel, but instead of using the terminal, your going to click on the OUTPUT option at the top of the panel instead, then in the drop down to the right, select prettier from the menu. This will tell you what is happening each time prettier tries to format.

If your still stuck, get to this point, where you have started to debug/troubleshoot prettier, and comment below about what the debugging info says, or ask a new question and include the debugging info.



END OF EDIT

🌐
Prettier
prettier.io › docs › install.html
Install · Prettier
Or use a glob like prettier --write "app/**/*.test.js" to format all tests in a directory (see fast-glob for supported glob syntax).
🌐
Medium
medium.com › @aleksej.gudkov › prettier-configuration-understanding-prettierrc-with-examples-4bf6f94b7f61
Prettier Configuration: Understanding .prettierrc with Examples | by UATeam | Medium
June 7, 2025 - The .prettierrc file is a configuration file used to define and customize Prettier's behavior in your project. By using this file, you can specify how Prettier formats your code, such as indentation, line width, and whether semicolons or single ...