How to automatically generate getters and setters in Android Studio

后端 未结 15 1248
太阳男子
太阳男子 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:09

    Right click on Editor then Select Source -> Generate Getters and Setters or press Alt + Shift + S enter image description here

提交回复
热议问题