🌐
Prettier
prettier.io
Prettier · Opinionated Code Formatter · Prettier
Try It OnlineInstall Prettier · Limited edition tshirts are now available to buy! $10 per tshirt goes to maintain the project. An opinionated code formatter · Supports many languages · Integrates with most editors · Has few options » · Your code is formatted on save ·
Blog
We're excited to announce that Prettier now fully supports the fresh features landing in Angular v21.1 (released today 🎉)! This update brings cleaner, more expressive templates with: Consecutive @case statements in @switch blocks. Spread elements (...) in array literals, object literals, and function calls inside templates. We've also added the ability to format Angular syntax beautifully inside Markdown code ...
Options · Prettier
Try prettier's new ternary formatting before it becomes the default behavior. ... false - Retain the default behavior of ternaries; keep question marks on the same line as the consequent. ... "end" - Default behavior; when binary expressions wrap lines, print operators at the end of previous lines. Specify the line length that the printer will wrap on. ... In code ...
Configuration File
You can configure Prettier via (in order of precedence):
🌐
GitHub
github.com › prettier › prettier
GitHub - prettier/prettier: Prettier is an opinionated code formatter. · GitHub
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. foo(reallyLongArg(), omgSoManyParameters(), IShouldRefactorThis(), isThereSeriouslyAnotherOne()); foo( reallyLongArg(), omgSoManyParameters(), IShouldRefactorThis(), isThereSeriouslyAnotherOne(), ); Prettier can be run in your editor on-save, in a pre-commit hook, or in CI environments to ensure your codebase has a consistent style without devs ever having to post a nit-picky comment on a code review ever again!
Starred by 51.7K users
Forked by 4.7K users
Languages   JavaScript 83.3% | TypeScript 6.2% | CSS 3.0% | HTML 3.0% | SCSS 1.5% | Less 1.0%
Discussions

What is Prettier keyboard shortcut command in VS Code to format only a block of React code, not just format on file autosave?
Using Prettier: Anyone know the keyboard shortcuts to auto-format a single block of javascript in VSCode on highlight, without having to save the entire file using Prettier to use auto formatting. More on stackoverflow.com
🌐 stackoverflow.com
reactjs - Prettier not working on save from within Visual Studio Code - Stack Overflow
I tried these and it still wasn't working. I noticed that at the bottom of my VS Code my Prettier wasn't showing a checkmark next to it. More on stackoverflow.com
🌐 stackoverflow.com
Why does Prettier not format code in VS Code?
In my Nuxt application where ESlint and Prettier are installed and enabled, I switched to Visual Studio Code. When I open a .vue file and press CMD+ Shift + P and choose Format Document, my file d... More on stackoverflow.com
🌐 stackoverflow.com
Those who stopped using prettier , why ?
What are you having troubles with? The only complaints I've heard about it is that it is too opinionated More on reddit.com
🌐 r/webdev
215
146
February 1, 2024
🌐
Reddit
reddit.com › r/frontend › is using prettier to format code bad.
r/Frontend on Reddit: Is using Prettier to format code bad.
May 23, 2023 -

Recently joined a agency as an Contract React developer. I was assigned a task to edit some inline Scss code.

Being a Prettier user I formatted the code, made the necessary changes and submitted a pull request.

Next day the senior developer reviewed my code and asked me to stop using Prettier and assigned me a task to change back the Scss code manually to inline Scss.

When I asked why should I not use prettier to format code. He said it's bad and time consuming and other team members started telling me a story how one time prettier wasn't working and started throwing errors.

That's why they never use it.

I wanted to say that It was showing error because you were doing something wrong.

Just because you once had an bad experience doesn't mean it's bad.

Plus they use one big single Scss file for the whole project.

When I question it too and asked them to use separate files and how it can effect the performance.

One team member answered it doesn't matter, how they don't care about the performance and I should be open minded and learn from them. The boss has 18 years of experience.

What should I learn why not to follow good practices!

🌐
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
🌐
SitePoint
sitepoint.com › blog › ai › hands-on with claude code: automating git workflows and legacy refactoring
Hands-On with Claude Code: Automating Git Workflows and Legacy Refactoring
2 weeks ago - # CLAUDE.md — Project Context ... require pytest tests with fixtures - No PR should be merged without passing CI checks ## Code Style - JavaScript: ESLint with Airbnb config, Prettier for formatting - Python: Black formatter, isort for imports, type hints required on public ...
🌐
Beautifier
beautifier.io
JS Beautifier
Chrome, in case the built-in CSS and javascript formatting isn't enough for you: — Quick source viewer by Tomi Mickelsson (github, blog), — Javascript and CSS Code beautifier by c7sky, — jsbeautify-for-chrome by Tom Rix (github), — Pretty Beautiful JavaScript by Will McSweeney — Stackoverflow Code Beautify by Making Odd Edit Studios (github).
🌐
Oxidation Compiler
oxc.rs › blog › 2026-02-24-oxfmt-beta
Oxfmt Beta
3 weeks ago - Oxfmt is a Rust-powered, Prettier-compatible code formatter built for the JavaScript ecosystem.
🌐
npm
npmjs.com › package › prettier
prettier - npm
January 21, 2026 - 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. foo(reallyLongArg(), omgSoManyParameters(), IShouldRefactorThis(), isThereSeriouslyAnotherOne()); foo( reallyLongArg(), omgSoManyParameters(), IShouldRefactorThis(), isThereSeriouslyAnotherOne(), ); Prettier can be run in your editor on-save, in a pre-commit hook, or in CI environments to ensure your codebase has a consistent style without devs ever having to post a nit-picky comment on a code review ever again!
      » npm install prettier
    
Published   Jan 21, 2026
Version   3.8.1
Author   James Long
Find elsewhere
🌐
JetBrains
jetbrains.com › help › webstorm › prettier.html
Prettier | WebStorm Documentation
Prettier is a tool to format files in various languages, like TypeScript, JavaScript, CSS, HTML, JSON, and others. With WebStorm, you can format selected code fragments as well as entire files or directories using the Reformat with Prettier action.
🌐
DEV Community
dev.to › g_abud › prettier-and-the-beauty-of-opinionated-code-formatters-pfg
Prettier and the Beauty of Opinionated Code Formatters - DEV Community
June 25, 2020 - For those of you that don't know, Prettier is an opinionated code formatter for Javascript/Typescript, HTML, JSX, and more. It is lightweight, requires next to no configuration, and automatically formats code for you.
🌐
Prettier
prettier.io › docs
What is Prettier? · Prettier
It removes all original styling* and ensures that all outputted code conforms to a consistent style. (See this blog post) Prettier takes your code and reprints it from scratch by taking the line length into account.
🌐
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 - Learn how to format code with Prettier in Visual Studio Code. This guide walks you through installing, configuring, and using Prettier for code formatting.
🌐
OpenReplay
blog.openreplay.com › using-prettier-with-vscode-to-write-javascript
Using Prettier with VSCode to write JavaScript
June 7, 2023 - Prettier is an open-source code formatting tool that automatically formats your code to a consistent and organized style. It supports several programming languages, including JavaScript, TypeScript, HTML, CSS, and more.
🌐
Robin Wieruch
robinwieruch.de › how-to-use-prettier-vscode
How to use Prettier in VS Code - Robin Wieruch
February 14, 2022 - Prettier is an opinionated code formatter which ensures one unified code format. It can be used in VS Code by installing it from the VS Code Marketplace. Once you have integrated it in VS Code, you can configure Prettier to format your files ...
🌐
Caasify
caasify.com › blog › prettier-vs-code-setup-a-complete-guide-to-code-formatting-and-automation
Prettier VS Code Setup: A Complete Guide to ...
September 26, 2025 - Prettier is a tool that automatically formats your code to make sure it sticks to a consistent style. It saves developers time by removing the need for manual formatting and arguments about style preferences.
🌐
Medium
medium.com › react-native-training › prettier-for-react-native-776fe33b8d93
Prettier, for React Native. Let the code format itself | by Lorenzo 'kelset' Sciandra | React Native Training | Medium
May 21, 2017 - Plain and simple, prettier is a formatter that, when activated, will modify your code in order to keep its appearance consistent.