Generating getters and setters

You can generate getters and setters separately or use one action to generate both methods.

Place the caret at your code, and press &shortcut:Generate;. In the Generate window, select Getter and setter.

Generate getters and setters