How to automatically generate getters and setters in Android Studio

后端 未结 15 1232
太阳男子
太阳男子 2020-12-02 04:15

Is there a shortcut in Android Studio for automatically generating the getters and setters in a given class?

15条回答
  •  不思量自难忘°
    2020-12-02 05:08

    Another funny way

    Type the parameter name anywhere in the object after definition, you will see setter and getter, Just select and click enter :)

    I tried with Android Studio 2.3

提交回复
热议问题