Generate constructors and accessor methods

Quickly generate common code constructs such as Constructors, Getters and Setters.

You can use ⌘N (macOS) / Alt+Insert (Windows/Linux) for the Generate menu and then select Constructor, Getter, Setter or Getter and Setter. In the popup, select which fields to include.


Related Resources

Convert Class to Record
Convert Class to Record
Use inspections to convert classes to Java 16 records.
Create New Class
Create New Class
Quickly add new classes to your project.
Extend Selection
Extend Selection
Extend and shrink your current code selection.