http://shawnkercher.com/2009/11/15/eclipse-tips-and-shortcuts/
Shortcuts
Most Common
Delete line | ctrl + d |
Go to Method | ctrl + o |
Format Code | ctrl + shift + f |
Last Edit | ctrl + q |
Line Number | ctrl + l |
Move line(s) | alt + up/down |
Open Resource | ctrl + shift + r |
Open Proj Prop | alt + enter |
Open Type | ctrl + shift + t |
Run Java App | alt + shift + x, j |
Run JUnit | alt + shift + x, t |
Shortcut List | ctrl + shift + l |
Refactoring Tips
Extract Method | alt + shift + m |
Extract Variable | alt + shift + l |
Rename | alt + shift + r |
Surround | alt + shift + z |
Templates
Go to Windows->Preferences->Java->Editor->Templates
To Activate templates press ctrl + space after command
For loop | for |
If statement | if |
Main Method | main |
System.out.println() | sysout |
System.err.println() | syserr |
While statement | while |
Custom Templates
- Logger
- private static final Logger logger = Logger.getLogger(${enclosing_type}.class);
No comments:
Post a Comment