Monkiki
Monkiki

Reputation: 109

Intellij code style setting to wrap multiline function arguments

In my current (almost default) configuration, this method is formatted this way:

public MyBean myMethod(String param1, String param2, String param3,
                       String param4) {
   ...
}

But I would like to be formatted with this other style:

public MyBean myMethod(String param1, String param2, String param3,
    String param4) {
   ...
}

I've playing with the Java "Wrapping and Braces" options, but with no luck :(

Upvotes: 0

Views: 1898

Answers (1)

Sweeper
Sweeper

Reputation: 271185

This setting can be found in the settings dialog, under Editor -> Code Style -> Java -> Wrapping and Braces -> Method declaration parameters -> align when multiline. You should uncheck the checkmark.

enter image description here

Upvotes: 2

Related Questions