Lambda opening brace on new line

Answered

IDEA-113294 seems to indicate that the code style in IDEA can be configured so that the opening brace for lambda's is placed on the next line. That is:

run ->
{

}

rather than

run -> {

}

For the life of me I cannot find a setting to do such on the Code Style > Java > Wrapping and Braces tab. Where can I set this?

2 comments

IDEA-113294 fixes indentation issue, it doesn't force wrapping for you, works only for the code that was wrapped manually.

Related issues:

https://youtrack.jetbrains.com/issue/IDEA-116736
https://youtrack.jetbrains.com/issue/IDEA-153525

0

Please sign in to leave a comment.