1

I want all function parameters to be generated on a new line, like so:

fun test(
    a: Int,
    b: Int,
    c: Int
)

How can I do this? At the moment the parameter lists wrap arbitrarily. I have an unknown number of function parameters to generate.

jimmy_terra
  • 1,430
  • 2
  • 18
  • 36

1 Answers1

2

Right now, if the function has more than 2 parameters, each parameter will appear on a new line, otherwise the function signature will be printed on a single line. We don't provide APIs for modifying this behavior.

Egor
  • 39,695
  • 10
  • 113
  • 130