What is the eclipse shortcut for auto-generating a default and field constructor?
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.)
Alt+Shift+s and then o opens the Generate Constructor using Fields
dialog.
Goto Source ---> Generate constructor using Fields
Under Source Title bar, select the Generate constructor using Fields option.
Or
Ctrl+Space
which displays the various suggestions possible, from there you can go for the default contructor.