Search code examples
scalaintellij-ideajetbrains-ide

How to force Intellij IDEA to use colon instead of braces for Scala 3 (Dotty)?


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?


Solution

  • The easiest way for me would be to:

    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.