Prettier
JetBrainsJetBrains · v—
Provides Prettier support to all JetBrains IDEs that support JavaScript . Features .js , .ts , .jsx , .tsx , .vue , and other file formatting according to Prettier rules an option to run Prettier on save Getting started For information on g
Rating distribution
Reviews 8
Works as advertised and helps me a ton! That said, there are some annoying gotchas. Some info for anyone else still having trouble: If it's not formatting on save, make sure you define a path to the Prettier library on your machine (Language & Frameworks > JavaScript > Prettier > Prettier package field). For me, it would not work if I tried to reference a global installation of Prettier (the...
@Mathieu you can put options into a .prettierrc file. {"bracketSpacing": true, "singleQuote": true, "printWidth": 120, "trailingComma": "all"} @Carl-Erik, I think auto-binding to Ctrl-Alt-L could be annoying, since I have multiple projects, some using prettier and some not. But it would be ok if it asked for permission to do that. I think it would be nice to auto-run prettier on every save,...
Sorry I just read that it was available starting with 2018.1 Got it now.
A good enhancement would be to add an option to run prettier before a git commit. Like the checkboxes under "Before commit" in the git commit dialog.
Overall this plugin has been awesome and allows me to reform code any time that I save a file. Unfortunately on Intellij 2025.2.3 the plugin version 252.26830.84 is rewriting code such that the code is broken. I have opened an issue in Jetbrains. When disabling this plugin and running prettier manually from node_modules, it's working. So it's not an issue with the prettier package but some...
Pretty neat productivity booster. Doesn't work well with monorepos: it tries to format everything.
Cannot live without this. If I may suggest an improvement: can we have an option to run prettier when closing a modified file? This new option would be more friendly with autosave: with the existed "run on file save" option, it's just not quite smooth to create a few blank lines, and see them removed (when prettier runs on autosave) before I can fill them. Really appreciate if you can consider this.