I want my classes look like:
class Dog:
def bark(): String = ...
instead of:
class Dog {
def bark(): String = ...
}
when I'm creating (generating) Scala file.
Is there any way to achieve this via settings or plugin?
The easiest way for me would be to:
.scalafmt.conf
in project rootrunner.dialect = scala3
and rewrite.scala3.removeOptionalBraces = yes
(possibly with rewrite.scala3.convertToNewSyntax = true
)This way, yes, IntelliJ would create whatever it has in its templates, but right after that I would convert it to whatever my whole project uses.