I have the following code:
record FooBar(@NotNull String foo, @NotNull Integer bar) {
}
I'd like Intellij IDEA to format it to:
record FooBar(
@NotNull
String foo,
@NotNull
Integer bar
) {
}
Is this possible?
The closest I was able to get is:
record FooBar(
@NotNull String foo,
@NotNull Integer bar
) {
}
which is not ideal as number of annotations can vary.
The options I used to get to this result are
Record components Wrap always
Align when multiline true
New line after '(' true
Place ')' on new line true
Currently this doesn't seem to be supported - I've opened a ticket on JetBrains issue tracker.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With