Automatic generation of constructor, getter / setter
private String name; private int price; private String color;
Right-click on the target field → Source → Generate constructor using field
(You can also open the source from the source quick menu with Alt + Shift + S.)
// Reference site
- java – Eclipse shortcut for generating simple assignments in the constructor
https://codeday.me/jp/qa/20190219/303482.html
Best answer
- Eclipse shortcut keys (Windows) that won't work unless you remember them
https://qiita.com/toshi0383/items/1d2a990392998789062c
Getter / setter generation