monnef
monnef

Reputation: 4053

Generating constructor in Scala in IntelliJ IDEA

In Java it's possible to just select "create constructor matching super" (or something pretty similar) and it automatically creates constructor. Is something like that available for Scala?

Example:

class Foo(a:Int, b:Int)
class Bar extends Foo

I'd just hit some hotkey on Bar and it would generate this:

class Bar(a:Int, b:Int) extends Foo(a:Int, b:Int)

Upvotes: 3

Views: 479

Answers (1)

Laksitha Ranasingha
Laksitha Ranasingha

Reputation: 4507

As per the IntelliJ IDEA scala plugin version 0.22.302 nothing has changed in code generation functionality. It has only got override & implement methods, companion object and toString options under code generation and no construction generation support yet.

Upvotes: 1

Related Questions