Chop long line?

For long lines (in C#) I used to be able to use the quickfix “Chop Long Line”. I would have liked this option all of the time instead of just if a line was long; but now it seems that the option is gone even for long lines?

Is there still a way to “chop” a line?

It should turn something like this:

public MyClass(Param1 param1, Param2 param2, Param3 param3, Param4 param4, Param5 param5) {

Into something like this:

public MyClass(
   Param1 param1,
   Param2 param2,
   Param3 param3,
   Param4 param4,
   Param5 param5
) {

It doesn't have to be exactly like that but it should at least roughly stack the parameters. Is there a way to invoke this still or is “chopping” not something we can do anymore?

Thanks

0

Please sign in to leave a comment.