1. System.out.println();
syso + Ctrl + Space
2. Toggle Comment
Ctrl + Shift + C
3. Run Application
Ctrl + F11
4. Import all packages
Ctrl + Shift + O
5. Auto Complete
Ctrl + Space
6. Generate Getter and Setter
Ctrl + Shift + G
But this shortcut is not default one, so you have to set it in eclipse.
Steps to map a command to desired key combination:
- Goto 'Windows' menu -> 'Preferences' ->'General' -> 'Keys'
- In 'type filter text', type 'getter'
- Select command 'Generate Getters and Setters'
- Below in 'Binding' field, press CTRL + SHIFT + G
- In 'When' selection below, select 'In Windows'
- Click 'Apply'.
- If in any case there shows Conflicts then either unbind the old one or change your key combo.
- Click 'OK'
No comments:
Post a Comment