What is the eclipse shortcut for auto-generating a default and field constructor?

前端 未结 10 1205
情话喂你
情话喂你 2020-12-13 16:59

I had a look at: Eclipse-Shortcuts, but I found nothing for generating a constructor.

Whats the shortcut for generating a standard constructor?

10条回答
  •  没有蜡笔的小新
    2020-12-13 17:37

    I think CTRL + 3 is great.

    GCFS - generate constructors from a superclass. GCUF - generate constructor using fields. GGAS - generate getters and setters.

提交回复
热议问题