Top 30 Eclipse Keyboard Shortcuts for Java Programmers [UPDATED]
source link: https://javarevisited.blogspot.com/2018/07/top-30-eclipse-keyboard-shortcuts-java-programming.html#axzz8BCfc5CI6
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Top 30 Eclipse Keyboard Shortcuts for Java Programmers [UPDATED]
Later I found that Eclipse is most suited for that distributed core Java application, which runs on Eclipse and depends upon a proprietary Linux library. It wasn't possible to run the whole application in Windows, and at that time some of the cool features of Eclipse like. Remote Debugging, Conditional Breakpoints, Exception breakpoints, and Ctrl+T and Ctrl+R kind of shortcuts really saved my life.
30 Useful Eclipse Keyboard Shortcuts for Java Programmers
You can further see The Eclipse Guided Tour - Part 1 and 2 on Pluralsight to learn more about code formatting shortcuts in Eclipse. Btw, you would need a Pluralsight membership to access this course, which costs around $29 monthly or $299 annually. I have one, and I also suggest all developers have that plan because Pluralsight is like NetFlix for Software developers.
It has more than 5000+ excellent quality courses on all the latest topics. Since we programmers have to learn new things every day, an investment of $299 USD is not bad.
Btw, it also offers a 10-day free trial without any obligation, which allows you to watch 200 hours of content. You can watch this course for free by signing for that trial.
Eclipse Shortcut for Quick Navigation
Apart from these keyboard shortcuts, learning how to debug a Java program in Eclipse is also a skill. There are so many debugging tools and features available in Eclipse, which many Java programmer doesn't know like conditional debugging, hit count, and remote debugging.
If you really want to become a good Java developer, I suggest you improve your debugging skill, and if you need some help with Eclipse Debugging Techniques And Tricks are the best place to start with.
Eclipse Shortcut for Editing Code
Miscellaneous Eclipse Shortcuts
If you need to see these shortcuts in action, you can also join The Eclipse Guided Tour - Part 1 and 2 online courses on Pluralsight. It's not free but costs you around a $29 monthly subscription fee but also gives you access to more than 5000 courses on Pluralsight on the latest technology, which is totally worth it.
Remember, programmers are technical people, if you are not learning which means you are going backward.
If you're a developer, you owe it to yourself to have a @pluralsight subscription. Sometimes, you need the flexibility to take many courses without buying each one of them.
Related Eclipse tutorials for Java Developers
If you like this tutorial and wants to learn more productivity tips, tricks, and new features of Eclipse IDE, then you can also see the following guides and tutorials:- How to attach the source code of a JAR file in Eclipse? (steps)
- How to debug a Java Program in Eclipse IDE? (guide)
- How to do the static import in Java Eclipse? (solution)
- How to solve Eclipse No Java Virtual Machine found the error? (solution)
- How to fix the JAR dependency not working in Eclipse Maven Plugin? (answer)
- How to fix Eclipse Not able to connect Internet or Market Place error? (solution)
- How do you create JUnit tests in Eclipse IDE? (guide)
- Eclipse shortcut for System.out.println() statements (shortcut)
- How to escape String literal in a Java file when posted on Eclipse? (solution)
- How to compare two files in Eclipse IDE? (guide)
- How to increase the console buffer size in Eclipse? (solution)
- How to make an executable JAR file in Eclipse? (steps)
- How to fix an Unsupported major.minor version 51.0 error in Eclipse? (solution)
- How to fix must override superclass method error in Eclipse? (solution)
- How to decompile class files in Eclipse? (solution)
- How to set java.library.path in Eclipse IDE? (steps)
- Step by Step Guide to Remote Debug a Java Application in Linux (guide)
P.S. - If you are looking for some free online courses to learn Eclipse better and improve your productivity then I suggest you check out this list of 6 Free Courses to Learn Eclipse and JUnit which not only teach you Eclipse better but also introduce you to JUnit, one of the most popular Java testing library.
33 comments :
Gautam said...
Good list of short cuts. Should have mentioned Ctrl-Shift-L to get this list and Ctrl-Shift-L twice to customize it.
Anonymous said...
1) Ctrl + T for finding class even from jar
Ctrl + T is the shortcut for Quick Hierarchy (Show the quick hierarchy of the selected element)
Anonymous said...
1) Ctrl + Shift + T for finding class even from jar
2) Ctrl + Shift + R for finding any resource (file) including config xml files
javin paul said...
Thanks for your comment Anonymous. yes Ctrl + Shift + T can be used to find classes from jar and that's what the difference between Ctrl + Shift + T and Ctrl + Shift + R. I also used Ctrl + Shift + T to findout which class comes first in classpath and its very useful if you have two classes with same name in two jar's and both jar in your classpath and one of them work and other doesn't.
javin paul said...
Thanks for your comment Keyboard shortcuts I visited your site and it has really good collection of keyboard shortcuts for various technology including eclipse 3.0.
javin paul said...
Thanks Gautam for informing us about Ctrl-Shift-L. I have included in main list for benefit of we all.
javin paul said...
Thanks Anonymous, Its good to know that these eclipse keyboard shortcuts are useful for you.
Anonymous said...
To go along with #28 Ctrl+Shift+P, I find Alt+Shift+UpArrow or Alt+Shift+DownArrow useful when both braces are not visible on the same screen.
Place the cursor next to the brace you want to match, then Alt+Shift+UpArrow and the matching braces and the code in between will be highlighted. Pressing Alt+Shift+UpArrow again expands the selection further. The highlighting can make brace matching much more evident.
Furthermore, this highlighting can be used on any logical block of code - put the cursor in the middle of any word (a string, a method,...) and try it.
Anonymous said...
Ctrl+j = incremental search is superior to Ctrl+f and essential for code navigation, means just Ctrl+j and type on. It will jump to the first match. Use Ctrl+j or Arrow down for the next match and Ctrl+Shift+j or Arrow up to move backwards
//Gilbert
Javin @ java.lang.unsupportedclassversionerror said...
@Anonymous thanks for your valuable suggestion, this eclipse shortcut indeed sounds quite useful , going to try it.
Anonymous said...
ctrl+shift+l displays list of all keyboard shortcuts
Abhijeet S. Sutar said...
A Master Shortcut - CTRL+3
Sandeep Kumar said...
Thanks Javin for this nice post. I've also compiled a list of useful Eclipse Keyboard Shortcuts and also uploaded a video showing how to use these shortcuts while programming.
Eclipse IDE Keyboard Shortcuts for Developers
Soya said...
My Favroties :
Eclipse shortcuts to comment and uncomment
Eclipse shortcut to formatting
Eclipse shortcut to finding Type information
Eclipse shortcut to remove all unused imports
Eclipse shortcut to run Java program
Eclipse shortcut to debug Java program
Thanks
Soya
Anonymous said...
What is Eclipse shortcut for static import in Java 5 ? is there any keyword shortcut to go from top of the page to bottom of page in Java Editor window ?
Ravindra said...
is there any book to learn Eclipse IDE? I want to master this IDE and increase my productivity by learning lots of tips, tricks and shortcuts. please let me know, if there is any comprehensive tutorial or book exists for Eclipse.
Anonymous said...
One of the keyboard shortcut I often use is Alt +Shift +s and Generate getter and Setters to generate automatic code mainly getter and setter.
AndreAgosto said...
For editor i find very useful CTRL + ALT + up(or down) to duplicate a line (or all lines selected)
also CTRL + D to delete a line (or all lines selected) is very useful
Anonymous said...
Ctrl + Home go to top of the document
Ctrl + End go to bottom of the document
Anonymous said...
F12 to switch back to editor
Unknown said...
HI .. Use Ctrl + Shift + / (from Numpad) to shrink all methods at once
and Ctrl + Shift + * (from Numpad) to expand all shrinked methods
Unknown said...
alt+shift+s+r---- for setters and getters
alt+l to select
Diwakar Choudhary said...
ctrl + shift + i = for indentation
a said...
To get Ctrl + Tab with most recent used (MRU) behaviour, change key shortcuts:
"Next Editor" = Ctrl + Tab
"Previous Editor" = Ctrl + Shift + Tab
First thing I do in every Eclipse installation.
Anonymous said...
I mostly use Ctrl + Shift + F to format source code in Eclipse.
Unknown said...
CTRL+E To navigate between open editor tabs.
Unknown said...
sysout+crtl+space=System.out.pritln
javin paul said...
@Unknown, good one, I used it daily :-)
Unknown said...
What is the short key for write public static void main(String args[])
Anonymous said...
This is an awesome java cheat sheet!
These shortcuts really help me out coding faster:
Ctrl + o
Ctrl + l
Ctrl + Shift + Up
I need to print them out!
Unknown said...
Explain -Xms and -Xmx in eclipse
Unknown said...
Whats the command for redirecting to the another abstract class.
Unknown said...
scanner s = new scanner(system.in); //after creating scanner
String name = s.nextString(); // need shortcut key for this
Post a Comment
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK