Intellij Ultimate. Records formatting.



Our team wants to change formatting of java records to the format pasted blow. Basically:

  • Every field on a new line.
  • Every annotation on a new line.
public record CreditTransaction(@NotBlank
String playerId,
String providerGameId,
String providerRoundId,
String betId,
String providerTransactionId,
TreeSet<String> providerBetId,
@IpmCreditTypeConstraint(allowedTypes = {IpmCreditType.SETTLE}, message = "Type not allowed")
IpmCreditType providerTransactionType,
String currencyCode,
String amount) {
1 comment

Hi Aleksandar,

Some formatting functionality is not available for records yet. Please upvote


Please sign in to leave a comment.