Top 20 Eclipse Shortcut Key for Java Programmers

Eclipse is the most used Java Development IDE used by the developers. Eclipse Shortcuts key not only improve your Productivity but also helps to impress colleagues.
Some of you also aware about this shortcuts but there are chances that new programmer might be not aware about these. So in todays blog we will try to cover the most often used shortcut in programming.

20 Useful Eclipse Keyboard Shortcuts for Java Programmers:

Here is my list of Top 20 Eclipse Shortcut  key Java developers. It’s useful for both core Java developers and Java web application development using Eclipse IDE for web development.

1. Ctrl + Shift + T : This keyboard shortcut is used to find class in an application or from inside a jar. No matter whether you have class in your application or inside any JAR, this shortcut will find it.

2. Ctrl + Shift + R : This keyboard shortcut is used to find all resource files, including the config XML files from the workspace. This is similar to above Eclipse shortcut with the only difference being that it can find out not only Java files but any files including XML, configs, and many others. However, this eclipse shortcut only finds files from your workspace and doesn’t dig at the JAR level

3. Ctrl + W : This keyboard shortcut is used to close the current file. So by using this short cut you can only close your current file in which you are working now.

4. Ctrl + Shirt + W : Suppose if you have opened many files in a project and now want to close all the files then what you do for that. Do you close all that one by one? No na. So this shortcut key is used for closing all the open files in a single shortcut key.

5. Ctrl + Shift + O : This is particularly helpful if you copy some code from another file and want to import all dependencies. Then use this shortcut key and all import dependencies will be add automatically.

6. Ctrl + Shift + F : For a programmer, code formatting is like to organize your code for better understanding and to debug code easily. So this shortcut key will Format all your code in a jiffy. This is the most often shortcut used by the programmer.

7. Ctrl + / : If you want to comment or uncomment a line or a block then this shortcut is very useful for you.

8. Ctrl + Shift + Enter : This keyboard shortcut is used to add blank line before the current line

9. Alt + Shift + S, R : If you are working on a project then Setters & Getters are most oftenly used during coding. So are you organizing Setters & Getters manually or using the shortcut key? This shortcut will help you to generate Setters & Getters easily without writing any code manually.

10. Alt + Shift + S, S : If you want to generate toString() method then this shortcut will resolve your issue without writing any line of code.

11. Alt + Shift + S, o : This shortcut will help you to add constructor with fields.

12. Ctrl + 1 + Enter : During coding there are some scenario for which you have to write a return statement. This keyboard shortcut is used to store method return value to variable.

13. Ctrl + D : This shortcut is used to delete current line

14. Ctrl + O : It will display all methods of current class and again Pressing Ctrl + O will display all the inherited methods

15. Ctrl + Shift + P : Go to matching bracket

16. Alt + Shift + R : This will help to rename a file, class and package.

17. Alt + Shift + T : To open the context-sensitive refactoring menu

18. Alt + Shift + Z : Try and Catch are the most often statement used for execution of particular statement without halting the code execution during the compiling. So this key will help to surround a block with try and catch.

19. Ctrl + Shift + / : To comment and uncomment lines with a block comment

20. Ctrl + Q : To go to the last edited position

If you have some more useful Eclipse keyboard shortcuts then please post as comments. I will include them in this list. 

Facebook
Twitter
LinkedIn
WhatsApp
Print

Leave a Comment