Java code style multiline parameters

Answered

Dear All,

I'm looking to parametrize IntelliJ to format (allow) like the example bellow. I tried with the actual parameters without success. Is that something you can implement ?

Thanks and best regards,
Lionel

public void multilineMethod
(
String p1BigNameParam, // maybe a comment here
String p21BigNameParam,
Integer p3BigNameParam,
String p4
)
{
logger.log
(
Level.SEVERE,
MessageFormat.format
(
"multiline method called p1({0}), p2({1}), p3({2}), p4({3})",
String.valueOf(p1BigNameParam),
String.valueOf(p21BigNameParam),
String.valueOf(p3BigNameParam),
String.valueOf(p4)
)
);

// multiline method call
List<String> lines = dao.getLines
(
p1BigNameParam,
p21BigNameParam,
p3BigNameParam
);

for(String line : lines)
{
// ...
}
}
1

Please sign in to leave a comment.