method parameter list - how to switch between single- and multiline?



I'm sure I just didn't find the magic keystroke combo yet...


I simply want to switch by keystroke between following basic formattings.

void someMethod(Class a, Class b, Class c) {...} //singleline


void someMethod( //multiline
Class a,
Class b,
Class c
) {...}

Same goes for method invocations, array initialization etc.

I'm putting this in the IntelliJ topic, but I guess this is (should be) a general feature in all products.

1 comment
Comment actions Permalink

Settings | Editor | Code style | Java | Method declaration parameters  -set to wrap always.


Please sign in to leave a comment.