Home > Software engineering >  Can Prettier rules be applied using IntelliJ IDEA code style rules instead of the Prettier plugin?
Can Prettier rules be applied using IntelliJ IDEA code style rules instead of the Prettier plugin?

Time:05-18

I have a project that contains some TypeScript files which I would like to format using the enter image description here

But unfortunately it's not possible for us to match Prettier behavior completely because it doesn't have a specification and introduces stylistic changes in patch releases. So in general matching Prettier behavior with the built-in formatter is something that most likely will not happen. It's expected that if someone is using Prettier, they will be either using the Reformat with Prettier action or set up Prettier to run on Reformat Code action (https://www.jetbrains.com/help/idea/prettier.html#ws_prettier_default_formatter).

  • Related