Code Formatting Indentation Issue with Lambdas
已回答
Is there any way I can get IntelliJ to format this code better? I think the issue is that it drops the closing brace/parens to 0 instead of shifting continuation properly. Either that or don't handle a chained call as if it were a continuation. (4 space indent, 8 space continuation).
return Option.of("").map(s -> {
return s;
})
.getOrNull();
Should probably be
return Option.of("").map(s -> {
return s;
})
.getOrNull();
请先登录再写评论。
Please submit at https://youtrack.jetbrains.com/issues/IDEA and attach a sample file.