Command Palette

Search for a command to run...

Page Inspect

https://prettier.io/
Internal Links
13
External Links
63
Images
32
Headings
14

Page Content

Title:Prettier · Opinionated Code Formatter · Prettier
Description:Opinionated Code Formatter
HTML Size:27 KB
Markdown Size:2 KB
Fetched At:November 15, 2025

Page Structure

h2What is Prettier?
h2Why?
h2Works with the Tools You Use
h2Editor Support
h3Emacs
h3Espresso
h3Nova
h3Sublime Text
h3Vim
h3Visual Studio
h3VS Code
h3WebStorm
h2Used By People You Rely On
h2Established in the Ecosystem

Markdown Content

Prettier · Opinionated Code Formatter · Prettier

Skip to main content

**Prettier**

stable

- next
- stable

PlaygroundDocsBlogDonate

Search

PRETTIER FOR ENTERPRISE

Try It OnlineInstall Prettier

Limited edition tshirts are now available to buy! $10 per tshirt goes to maintain the project.

## What is Prettier?

- An opinionated code formatter
- Supports many languages
- Integrates with most editors
- Has few options »

## Why?

- Your code is formatted on save
- No need to discuss style in code review
- Saves you time and energy
- And more »

## Works with the Tools You Use

- JavaScript
- JSX
- Flow
- TypeScript
- JSON

- HTML
- Vue
- Angular
- Ember / Handlebars

- CSS
- Less
- SCSS
- `styled-components` 💅
- `styled-jsx`

- GraphQL
- GraphQL Schemas

- Markdown
- CommonMark
- GitHub-Flavored Markdown
- MDX v1

- YAML

- Community Plugins
- Apex
- Elm (via `elm-format`)
- Java
- PHP
- Ruby
- Rust
- TOML
- XML
- And more...

## Editor Support

### Emacs

`prettier-js`
`prettier.el`
`Apheleia`

### Espresso

`espresso-prettier`

### Nova

`Prettier`
`Prettier⁺`

### Sublime Text

`JsPrettier`

### Vim

`vim-prettier`
`neoformat`
`ALE`
`coc-prettier`

### Visual Studio

`JavaScriptPrettier`

### VS Code

`prettier-vscode`

### WebStorm

Built-in support

Got more?Send a PR

## Used By People You Rely On

See others

## Established in the Ecosystem

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.8 million** dependent repositories on GitHub

Check Them Out

More than **19.8k** dependent packages on npm

See them all

Docs

- About
- Usage
-

Community

- User Showcase
- Stack Overflow
- @PrettierCode on X

More

- Blog
- GitHub
- Issues
-