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?
Please sign in to leave a comment.
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
Thanks Serge.