0

Whenever I call a method that has too many arguments and the line exceeds the margin, I need it to put each of the params on separate lines.

My settings: My settings

Original code:

return getSubscriptionList(contractNumber, objects, acceptLanguage, userNumber, bankSystem, groupIdentification).stream()
        .map(subscription -> createSubscriptionListItem(subscription,accountsFilterItems))
        .collect(Collectors.toList());

After reformatting (this changes it exactly to what I want):

return getSubscriptionList(
        contractNumber,
        objects,
        acceptLanguage,
        userNumber,
        bankSystem,
        groupIdentification
).stream()
        .map(subscription -> createSubscriptionListItem(subscription, accountsFilterItems))
        .collect(Collectors.toList());

After reformatting the already reformatted code again:

return getSubscriptionList(contractNumber,
        objects,
        acceptLanguage,
        userNumber,
        bankSystem,
        groupIdentification
).stream()
        .map(subscription -> createSubscriptionListItem(subscription, accountsFilterItems))
        .collect(Collectors.toList());

Why does it change the format the second time, and how can I change my settings to fix it?

Link to settings XML export

warozell
  • 49
  • 2
  • 6
  • 1
    Please report it as a bug at https://youtrack.jetbrains.com/newIssue?project=IDEA. Thank you. – CrazyCoder Oct 12 '21 at 16:56
  • Thanks for the reply, created as https://youtrack.jetbrains.com/issue/IDEA-280244 for anyone who might be looking for a resolution as well – warozell Oct 13 '21 at 08:22

0 Answers0