To get the most out of Prettier, it’s recommended to run it from your editor.
If your editor does not support Prettier, you can instead run Prettier with a file watcher.
Note! It’s important to install Prettier locally in every project, so each project gets the correct Prettier version.
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.
If you’d like to toggle the formatter on and off, install
For more details see the Vim setup guide.
A formatter can be specified in your Helix language configuration, which will take precedence over any language servers.
For more details see the Helix external binary formatter configuration for Prettier.
Sublime Text support is available through Package Control and the JsPrettier plug-in.
JetBrains WebStorm, PHPStorm, PyCharm...
See the WebStorm setup guide.
Espresso users can install the espresso-prettier plugin.