Prettier

Compatible with: IntelliJ IDEA PhpStorm WebStorm PyCharm RubyMine AppCode CLion GoLand Rider
Sep 19, 2018
35 782
This plugin adds support for Prettier (https://prettier.io), an opinionated code formatter.

To use it:
  • Add prettier to your project with npm install prettier --save-dev or install it globally
  • Select the code or file you want to format using Prettier
  • Use the “Reformat with Prettier” action (Alt-Shift-Cmd-P on macOS or Alt-Shift-Ctrl-P on Windows and Linux) or find it using the “Find Action” popup (Cmd/Ctrl-Shift-A)

To run Prettier on save, please configure and use File Watchers.

This plugin is compatible with the IDE versions starting from 2018.1.

Please report any issues in the issue tracker.

Download plugin

General usage instructions

Support for Prettier (https://prettier.io), an opinionated code formatter. How to use it:

  • Add prettier to your project with npm install prettier --save-dev or install it globally

  • Select the code or file you want to format using Prettier

  • Use the “Reformat with Prettier” action (Alt-Shift-Cmd-P on macOS or Alt-Shift-Ctrl-P on Windows and Linux) or find it using the “Find Action” popup (Cmd/Ctrl-Shift-A)

To run Prettier on save, please configue and use File Watchers as described
here. This plugin is compatible with IDE versions starting with 2018.1.

Please report any issues in the
issue tracker.