Generate Setters and Getters Using Autocomplete

Type the name of a field inside a class and then trigger Content Assist. Getters and setters that are available to implement are preceded by the “Generate setter and getter” keyword.

The adjacent proposal tooltip includes information about the action that will be performed.

Upon choosing the field, the corresponding setter and getter method will be generated at the cursor’s location.

../../_images/generate_getters_and_setters_content_assist.gif