How can I force function parameters onto new lines?

591 views Asked by At

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.

1

There are 1 answers

0
Egor On

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.