Files
test-repo/docs/editors.md
T

47 lines
2.0 KiB
Markdown
Raw Normal View History

2017-07-03 20:48:05 +10:00
---
id: editors
title: Editor Integration
---
To get the most out of Prettier, it’s recommended to run it from your editor.
2017-07-03 20:48:05 +10:00
If your editor does not support Prettier, you can instead [run Prettier with a file watcher](watching-files.md).
**Note!** It’s important to [install](install.md) Prettier locally in every project, so each project gets the correct Prettier version.
2017-07-03 20:48:05 +10:00
## Visual Studio Code
`prettier-vscode` can be installed using the extension sidebar – it’s called “Prettier - Code formatter.” [Check its repository for configuration and shortcuts](https://github.com/prettier/prettier-vscode).
2017-07-03 20:48:05 +10:00
If you’d like to toggle the formatter on and off, install [`vscode-status-bar-format-toggle`](https://marketplace.visualstudio.com/items?itemName=tombonnike.vscode-status-bar-format-toggle).
2017-07-03 20:48:05 +10:00
## Emacs
2017-07-03 20:48:05 +10:00
Check out the [prettier-emacs](https://github.com/prettier/prettier-emacs) repo, or [prettier.el](https://github.com/jscheid/prettier.el).
## Vim
[vim-prettier](https://github.com/prettier/vim-prettier) is a Prettier-specific Vim plugin. [Neoformat](https://github.com/sbdchd/neoformat), [ALE](https://github.com/w0rp/ale), and [coc-prettier](https://github.com/neoclide/coc-prettier) are multi-language Vim linter/formatter plugins that support Prettier.
For more details see [the Vim setup guide](vim.md).
2017-07-03 20:48:05 +10:00
## Sublime Text
2017-11-22 19:27:40 +08:00
Sublime Text support is available through Package Control and the [JsPrettier](https://packagecontrol.io/packages/JsPrettier) plug-in.
2017-07-03 20:48:05 +10:00
## JetBrains WebStorm, PHPStorm, PyCharm...
2017-11-07 14:39:07 +11:00
See the [WebStorm setup guide](webstorm.md).
## Visual Studio
Install the [JavaScript Prettier extension](https://github.com/madskristensen/JavaScriptPrettier).
## Atom
Atom users can install the [prettier-atom](https://github.com/prettier/prettier-atom) package, or one of the more minimalistic [mprettier](https://github.com/t9md/atom-mprettier) and
[miniprettier](https://github.com/duailibe/atom-miniprettier) packages.
## Espresso
Espresso users can install the [espresso-prettier](https://github.com/eablokker/espresso-prettier) plugin.