Saturday, January 24, 2015

Eclipse Shortcuts

Eclipse IDE is an amazing environment to help you learn many languages in one simple to install and use environment.  You can use it to learn Java, C++, and Python without learning IDE for each of those languages.  That way, you can focus on the actual language instead of wasting time learning another IDE.

Eclipse has man shortcuts that can help you make your programming experience much more fun by providing shortcuts for repeated tasks.

Auto-generate constructor
Auto generate setters and getters
Project->Generate javadoc
sysout + Ctrl + Space


Ctrl + i - indent selection
Ctrl+Shift+o - import required libraries
Ctrl+D - delete line
Alt+Shift+R - rename all occurrence of an identifier
Ctrl+F11 - run the code


Others

Alt+up or down  - Move a line of code up or down
main + Ctrl + Space  - Create main method signature
Ctrl+D  - Show hierarchy of a class
Ctrl+/ - comment the source code line
Ctrl+L - jump to line number
Ctrl+q  - last edit location
Ctrl+ o - outline of class

Short video summarizing most of the features mentioned in this post.
https://www.youtube.com/watch?v=7ESqUgkzke4

No comments:

Post a Comment