Use scalafmtConfigSettings to enable the plugin for integration tests and then The sbt plugin is enabled by default for the Test and Compile configurations.
![intellij auto format intellij auto format](https://automationrhapsody.com/wp-content/uploads/2015/11/IntelliJ-toString-generate.png)
INTELLIJ AUTO FORMAT CODE
You can use the Metals language server to format code with Scalafmt It is not possible to reset this setting for all existing projects.
INTELLIJ AUTO FORMAT INSTALL
DO NOT install theĭeprecated Scalafmt plugin unless you have an older version of Intellij. The Scala plugin compatible with recent versions of IntelliJ IDEA hasīuilt-in support for Scalafmt (see Note below). You can use Scalafmt from your editor, build tool or terminal.