Search code examples
javaintellij-idearecordcode-editorjava-record

IntelliJ editor code style setting for spaces within parentheses defining a Records class (JEP 359: Records (Preview)) in Java 14?


I am using IntelliJ 2020.1.1 RC, which is supposed to have support for Records feature being previewed in Java 14. (See JEP 359: Records (Preview))

I cannot find a setting to put spaces within the parentheses of the class definition for a record.

Example code:

package work.basil.example;

import java.time.LocalTime;

public record LocalTimeRange(LocalTime start , LocalTime stop)
{
}

Screen shot of IntelliJ preferences for Java code style.

screenshot of IntelliJ preferences for Java code style


Solution

  • It's work in progress, follow this YouTrack ticket for updates: