.. _Generate Getters and Setters:

Generate Getters and Setters
============================


To open the **Generate Getters and Setters** dialog start typing the name of a field inside a class, press :kbd:`Ctrl+Space` and select :guilabel:`Generate Getters and Setters` or **right-click inside a class** and select :menuselection:`Source --> Generate Getters and Setters`. 

A dialog with all the getters and setters that can be created for the current class will appear. You can type the first letters of the field's name to filter out the list. Select the functions that you want to implement and press :guilabel:`OK`.

.. figure:: ../../images/sv_generate_getters_setters_in_autocomplete.png

.. figure:: ../../images/sv_generate_getters_setters_dialog.png

.. figure:: ../../images/sv_getters_setters_in_editor.png

