AppCode
 
2023.1
Get AppCode

Prettier

Last modified: 06 February 2023

Required plugins:

JavaScript and TypeScript -  The plugin is bundled with AppCode and enabled by default.

Prettier -  Install the plugin on the Settings | Plugins page, tab Marketplace.

Prettier is a tool to format .js, .ts, .css, .less, .scss, .vue, and .json code. With AppCode, you can format selected code fragments as well as entire files or directories using the Reformat with Prettier action. AppCode adds this action as soon as you install Prettier as a dependency in your project or globally on your computer.

You can configure Prettier to reformat specific files every time such file is changed and the changes are saved automatically or manually.

Also, Prettier can be set as default formatter for specific files. It will run against such files every time you reformat your code with Ctrl+Alt+L.

See Reformat code with Prettier for details.