Description
Prettier is an opinionated code formatter. It rewrites your code into one consistent style, so a team does not have to argue about formatting in code review. It supports many languages, including JavaScript, JSX, Flow, TypeScript, JSON, CSS, Less, SCSS, HTML, Vue, Angular, Markdown, GraphQL and YAML, and community plugins add others such as Java, PHP, Ruby, Rust and XML. It integrates with most editors, including VS Code, WebStorm, Visual Studio, Sublime Text, Vim and Emacs, and the site describes its options as few, so most of the style is decided for you. The project is open source, with its code on GitHub. The site offers a playground to try it in the browser, documentation, a blog and a user showcase. It reports wide use, including more than 10.1 million dependent repositories on GitHub. An enterprise offering, Prettier for Enterprise, is also listed.…
Highlights
- Opinionated formatter with few options
- Formats JavaScript, TypeScript, CSS, HTML, Markdown, GraphQL and more
- Community plugins for Java, PHP, Ruby, Rust and more
- Editor support for VS Code, WebStorm, Vim and others
- Playground to try it in the browser
Ratings & Reviews
No ratings yet
Be the first to rate Prettier.
People also visit
Prettier FAQ
What is Prettier?
An opinionated code formatter. It rewrites your code into one consistent style, so the team stops discussing formatting in code review.
Which languages does it format?
JavaScript, JSX, Flow, TypeScript, JSON, CSS, Less, SCSS, styled-components, HTML, Vue, Angular, Markdown, GraphQL and YAML. Community plugins add languages such as Java, PHP, Ruby, Rust and XML.
Which editors work with it?
The site lists support for VS Code, WebStorm, Visual Studio, Sublime Text, Vim, Emacs, Nova and Espresso, among others.
Is Prettier open source?
Yes. The source is on GitHub at prettier/prettier.
How do I install it?
Open the Install Prettier page on prettier.io. The site also has a playground where you can try it online first.
What are the best Prettier alternatives?
Popular alternatives to Prettier include DevGPT, Snippp and AskCodi. See all Prettier alternatives





