Create Record

Let IntelliJ IDEA support you in creating a new Java record class.

Create a new record by pressing ⌘N (macOS) / Alt+Insert (Windows/Linux) on the Project Window. From the New Java Class dialog, type the name of the record and select the Record type.


Related Resources

Convert Class to Record
Convert Class to Record
Use inspections to convert classes to Java 16 records.
Enable Git Staging
Enable Git Staging
Git Staging is an alternative approach to IntelliJ IDEA Changelists.
Create New Class
Create New Class
Quickly add new classes to your project.