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

前端 未结 10 1197
情话喂你
情话喂你 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:25

    Type the first letter of your class, then press Ctrl+Space, Eclipse will list suggestions within a combobox. The topmost suggestion is the default constructor. Press Enter, it will be done. (I'm using Eclipse Juno and it works.)

提交回复
热议问题