Use IntelliJ formatter for code range formatting: this option is selected by default. You will see that the list of tabs below the formatter field is changed.Ĭheck the following notable Scalafmt formatter options:
Switch the option in the Formatter field to Scalafmt. In the Settings dialog ( Control+Alt+S), go to Editor | Code Style | Scala.
You can enable Scala formatter in your project and configure the formatter settings. IntelliJ IDEA lets you integrate with Scalafmt formatter.