Sunteți pe pagina 1din 7

5/20/2017 Top30EclipseKeyboardShortcutsforJavaProgrammer

Javarevisited
Blog about Java programming language, FIX Protocol, Tibco RV

Home core java spring hibernate collections multithreading design patterns interview questions coding data structure OOP books About Me

Top 30 Eclipse Keyboard Shortcuts for Java Programmer


This tutorial is about 30 Eclipse keyboard
shortcuts, this list is by no means complete and
I will suggest you guys to share eclipse shortcuts
listed other than here to make this more useful.
Eclipse is the most used Java development IDE
and knowing Eclipse shortcuts not only
improve your productivity but also makes you
more efficient. You will have more time for
things you like to do. Using keyboard shortcuts
also helps to impress colleagues and shows that
you have a good hold on tools you used for Java
Development. If you are a Java developer, who
use Eclipse as its main IDE for all coding, development, and debugging purpose, then I also
suggest you to take a look at The Java Developer's Guide to Eclipse, 2nd Edition, one of the
best book to learn how to use Eclipse from Java programmer's perspective.

I was big fan of Netbeans IDE before coming across Eclipse because I was from J2ME
background and Netbeans provide sophisticated IDE environment to enable you to build,
debug and run your Java application in various emulator including some advanced processing
options e.g. preprocessing, setting up Exception breakpoint etc. From that time I love to
know keyboard shortcuts on IDE and other tools, I used for development including Edit Plus,
Microsoft Excel etc.

But when I join an investment bank I came across Eclipse IDE, since everybody in my team is
using and Netbeans IDE was not available in company (dont know why that wasnot allowed
netbeans even though it was free) I have decided to go Eclipse way, later I found that Eclipse
was most suited for that application given some of cool feature of eclipse e. g. Remote
Debugging, Conditional Breakpoints, Exception breakpoints and Ctrl+T and Ctrl+R kind of
shortcuts.

Here I am sharing a list of 30 Eclipse keyboard shortcuts which I found most useful and using
in my day to day life while writing code, reading the code or debuggingJava application in
Eclipse.

Interview Questions

core java interview question (167)


data structure and algorithm (52)
interview questions (52)
Coding Interview Question (36)
SQL Interview Questions (28)
design patterns (27)
object oriented programming (25)
thread interview questions (22)
database interview questions (18)
collections interview questions (17)
servlet interview questions (17)
spring interview questions (10)
Programming interview question (6)
hibernate interview questions (6)
30 Useful Eclipse Keyboard Shortcuts for Java Programmers
Here is my list of 30 chosen Eclipse IDE keyboard shortcuts for Java developers. It's useful for
both core Java developer and Java web application developer using Eclipse IDE for web

http://javarevisited.blogspot.com/2010/10/eclipsetutorialmostusefuleclipse.html 1/8
5/20/2017 Top30EclipseKeyboardShortcutsforJavaProgrammer
development.

1)Ctrl + Shift +T for finding class even from jar

This keyboard shortcut in Eclipse is my most used and favorite shortcut. While working with a
highspeed trading system which has a complex code, I often need to find classes with the
just blink of the eye and this eclipse keyboard shortcut is just made for that. No matter
whether you have class in your application or inside any JAR, this shortcut will find it.

2)Ctrl + Shift +R for finding any resource (file) including config xml files

This is similar to above Eclipse shortcut with only difference that it can find out not only Java
files but any files including XML, configs, and many others, but this eclipse shortcut only finds Recommended Reading
files from your workspace and doesnt dig at jar level.
5 Books to Learn Core Java in 2017
5 Books to Learn Java 8 and Functional
3)Ctrl + 1 for quick fix Programming
5 Books to Learn Spring MVC in 2017
This is another beautiful Eclipse shortcut which can fix up any error for you in Eclipse. 3 Books to Learn Hibernate in 2017
Whether its missing declaration, missing semicolon or any import related error this eclipse Top 5 JavaScript Books for Web Developers
shortcut will help you to quickly sort that out. Best book to Learn Servlet and JSP
5 Books to Learn REST and RESTFul Web Services
4)Ctrl + Shift + o for organize imports 5 Books to improve Coding Skills
5 Advanced SQL Books
Another Eclipse keyboard shortcut for fixing missing imports. Particularly helpful if you copy
Translate this blog
some code from other file and what to import all dependencies.
SelectLanguage

Poweredby Translate
Eclipse Shortcut for Quick Navigation
In this section, we will see some eclipse keyboard shortcut which helps to quickly navigate
within the file and between file while reading and writing code in Eclipse.

7) Ctrl + o for quick outline going quickly to method


9) Alt + right and Alt + leftfor going back and forth while editing.
12) Alt + Shift + W for show in package explorer
13) Ctrl + Shift + Up and down for navigating from member to member (variables and
methods)
15) Ctrl + k and Ctrl + Shift +K for find next/previous
24) Go to a type declaration: F3, This Eclipse shortcut is very useful to see function definition
very quickly. Java Tutorials
date and time tutorial (20)
FIX protocol tutorial (16)
Eclipse Shortcut for Editing Code java collection tutorial (55)
These Eclipse shortcuts are very helpful for editing code in Eclipse. java IO tutorial (25)
5) Ctrl + /for commenting, uncommenting lines and blocks, see here for live example. Java JSON tutorial (7)
6) Ctrl + Shift + / for commenting, uncommenting lines with block comment, see here for Java multithreading Tutorials (37)
example. Java Programming Tutorials (27)
8) Selecting class and pressing F4 to see its Type hierarchy Java xml tutorial (11)
10) Ctrl + F4 or Ctrl + wfor closing current file
11) Ctrl+Shirt+Wfor closing all files.
14) Ctrl + l go to line
16) Select text and press Ctrl + Shift + F for formatting.
17) Ctrl + F for find, find/replace
18) Ctrl + D to delete a line
19) Ctrl + Q for going to last edited place

Miscellaneous Eclipse Shortcuts


These are different Eclipse keyboard shortcuts which doesnt fit on any category but quite
helpful and make life very easy while working in Eclipse.

http://javarevisited.blogspot.com/2010/10/eclipsetutorialmostusefuleclipse.html 2/8
5/20/2017 Top30EclipseKeyboardShortcutsforJavaProgrammer

20) Ctrl + T for toggling between supertype and subtype


21) Go to other open editors: Ctrl + E.
22) Move to one problem (i.e.: error, warning) to the next (or previous) in a file: Ctrl +. For
next, and Ctrl +, for the previous problem
23) Hop back and forth through the files you have visited: Alt + and Alt + , respectively.
25) CTRL+Shift+G, which searches the workspace for references to the selected method or
variable
26) Ctrl+Shift+L to view listing for all Eclipse keyboard shortcuts.
27) Alt + Shift + jto add Javadoc at any place in java source file.
28)CTRL+SHIFT+P to find closing brace. Place the cursor at the opening brace and use this.
29) Alt+Shift+X, Qto run Ant build file using keyboard shortcuts in Eclipse.
30) Ctrl + Shift +Ffor Autoformatting.

Here is the nice image to remember these useful Eclipse shortcuts for Java programmers:

Search This Blog

Search

Followers
Followers(4240)Next

Follow

Subscribe to Download the Ebook

If you havesome more useful Eclipse keyboard shortcutsthen please post as comments, I
will include them in this list. These Eclipse shortcuts will mostly work almost all Eclipse
versions e.g. 3.5, 3.6 Helios, Eclipse Ganymede and Indigo. Let me know if you face any issue
while using these Eclipse shortcuts in any particular version of Eclipse IDE.
Download
Buildinga REST API with Spring 4?
The Ebook

Related Eclipse tutorials for Java Developers Emailaddress... Download


If you like this tutorial and wants to learn more productivity tips, tricks and new features of
Blog Archive
Eclipse IDE, then you can also see following guides and tutorials:
2017 ( 91 )
How to attach source code of a JAR file in Eclipse? (steps) 2016 ( 166 )
How to debug a Java Program in Eclipse IDE? (guide) 2015 ( 126 )
How to do the static import in Java Eclipse? (solution) 2014 ( 100 )
How to solve Eclipse No Java Virtual Machine found error? (solution) 2013 ( 127 )
How to fix the JAR dependency not working in Eclipse Maven Plugin? (answer) 2012 ( 214 )

http://javarevisited.blogspot.com/2010/10/eclipsetutorialmostusefuleclipse.html 3/8
5/20/2017 Top30EclipseKeyboardShortcutsforJavaProgrammer
How to fix Eclipse Not able to connect Internet or Market Place error? (solution) 2011 ( 135 )

How do you create JUnit tests in Eclipse IDE? (guide) 2010 ( 30 )


December ( 4 )
Eclipse shortcut for System.out.println() statements (shortcut)
October ( 26 )
How to escape String literal in a Java file when posted on Eclipse? (solution)
List of Tibco RV, EMS Tutorials , Tips from
How to compare two files in Eclipse IDE? (guide)
Javare...
How to increase console buffer size in Eclipse? (solution) Tibco tutorial : Certified Messagging
How to make anexecutable JAR file in Eclipse? (steps) What are builtin Properties in ANT >> Tutorial
How to fix Unsupported major.minor version 51.0 error in Eclipse? (solution) Ex...
How to fix must override superclass method error in Eclipse? (solution) Top 30 Eclipse Keyboard Shortcuts for Java
Program...
How to decompile class file in Eclipse? (solution)
How to write build.xml and run build in Apache
How to set java.library.path in Eclipse IDE? (steps) ANT...
Hot to build project using Apache ANT ? ANT
Build...
Further Reading MySql Tutorial : mysqldump utility in mysql
If you are Java developer, who is primarily coding in Eclipse IDE then I strongly suggest MySQL tutorial and commands part 3
reading The Java Developer's Guide to Eclipse, 2nd Editionbook. It will give you confidence MySQL tutorial and commands part 2
on working lie pro on Eclipse IDE. MySQL tutorial and commands Part 1
How to use Regular Expression in Unix Linux
Improving Performance of java application
Networking Basics for FIX Connection in Unix
Linux...

Lyft $500 How to avoid deadlock in Java Threads


Top 10 Most useful cvs commands in linux/unix

Driver Bonus Tibco tutorial : Tibco RV tips and commands


Tibco Tutorial: Fundamentals of Tibco RV
Earn Tips & Make Up To messaggi...

$35/Hour Driving with Lyft. TIBCO Tutorial : TIBCO Rendezvous or TIBCO RV


me...
Lyft Limited Time Offer - Apply What is Abstraction in Java? Abstract Class or
Now! Int...
Fundamentals of Object Oriented Programming
in Jav...
What is difference between Enumeration and
Iterato...
You May Like SponsoredLinks byTaboola
What is difference between HashMap and
NewestTrucksFinallyOfferedToThePublic Hashtable i...
SearchTruckAds What is the use of class java.lang.Class in
Java...
Why Comparing Integer using == in Java 5 is
Bad?
4ReasonswhyCouplesinJolietcookDinnerswithMartha&MarlySpoon
How to check if a thread holds lock on a
Martha&MarleySpoon particula...
Why String is Immutable or Final in Java

TheseRiverCruisesAreTheCreamOfTheCrop
YahooSearch

Pages

Privacy Policy
WherewereyouwhenJFKwasassassinated?
Copyright by Javin Paul 20102016. Powered by
StandardNews
Blogger.

5TastyTipsforEatingLikeaPensacolaLocal
VisitPensacola

NostradamusApparentlyPredictedDonaldTrumpsPresidencyButThatsJustThe
Beginning
NewRavel

Findcheapallinclusiveholidaysoffers.Comparetopdealsonalldestinations.Booktoday&
save!
Outlet101.us

http://javarevisited.blogspot.com/2010/10/eclipsetutorialmostusefuleclipse.html 4/8
5/20/2017 Top30EclipseKeyboardShortcutsforJavaProgrammer
NewDIYDiagnosticsDeviceTerrifiesAutoMechanics
Today'sMoneyTips

You might like:


Why we use Threads in Java?
Top 4 Books to Learn Java for Beginners (Newbie)
Java Program to Multiply Two Matrices Matrix Multiplication Example
Top 5 FREE eBooks to Learn jQuery Online or download PDF

Recommendedby

Posted by Javin Paul +768 Recommend this on Google

Labels: core java , Eclipse


Location: United States

30 comments :
Gautam said...
Good list of short cuts. Should have mentioned CtrlShiftL to get this list and CtrlShiftL twice to customize it.

January 22, 2011 at 8:08 PM

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)

April 5, 2011 at 5:32 PM

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

April 6, 2011 at 1:41 AM

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.

April 15, 2011 at 8:00 PM

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.

April 15, 2011 at 8:01 PM

Javin Paul said...


Thanks Gautam for informing us about CtrlShiftL. I have included in main list for benefit of we all.

April 15, 2011 at 8:02 PM

Javin Paul said...


Thanks Anonymous, Its good to know that these eclipse keyboard shortcuts are useful for you.

April 15, 2011 at 8:03 PM

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.

May 16, 2011 at 9:16 AM

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

http://javarevisited.blogspot.com/2010/10/eclipsetutorialmostusefuleclipse.html 5/8
5/20/2017 Top30EclipseKeyboardShortcutsforJavaProgrammer

//Gilbert

September 8, 2011 at 2:58 PM

Javin @ java.lang.unsupportedclassversionerror said...


@Anonymous thanks for your valuable suggestion, this eclipse shortcut indeed sounds quite useful , going to try it.

September 9, 2011 at 4:47 AM

Anonymous said...
ctrl+shift+l displays list of all keyboard shortcuts

September 30, 2011 at 8:20 AM

Abhijeet S. Sutar said...


A Master Shortcut CTRL+3

October 29, 2011 at 11:45 AM

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

December 13, 2011 at 9:03 AM

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

October 10, 2012 at 3:33 AM

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 ?

October 10, 2012 at 3:42 AM

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.

June 12, 2013 at 1:21 AM

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.

May 6, 2014 at 1:20 AM

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

May 12, 2014 at 12:15 AM

Anonymous said...
Ctrl + Home go to top of the document
Ctrl + End go to bottom of the document

July 3, 2014 at 5:04 PM

Anonymous said...
F12 to switch back to editor

January 30, 2015 at 9:48 AM

ANUPAM KUMAR said...

http://javarevisited.blogspot.com/2010/10/eclipsetutorialmostusefuleclipse.html 6/8
5/20/2017 Top30EclipseKeyboardShortcutsforJavaProgrammer
HI .. Use Ctrl + Shift + / (from Numpad) to shrink all methods at once
and Ctrl + Shift + * (from Numpad) to expand all shrinked methods

April 2, 2015 at 10:54 PM

Gouthami M said...
alt+shift+s+r for setters and getters
alt+l to select

October 9, 2015 at 9:45 PM

Diwakar Choudhary said...


ctrl + shift + i = for indentation

October 10, 2015 at 10:35 AM

Jonas Fredriksson 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.

October 11, 2015 at 10:13 AM

Anonymous said...
I mostly use Ctrl + Shift + F to format source code in Eclipse.

June 6, 2016 at 7:41 PM

shivshankar pal said...


CTRL+E To navigate between open editor tabs.

June 10, 2016 at 5:05 AM

Unknown said...
sysout+crtl+space=System.out.pritln

June 21, 2016 at 10:17 PM

Javin Paul said...


@Unknown, good one, I used it daily :)

June 22, 2016 at 4:53 AM

shahjade alam said...


What is the short key for write public static void main(String args[])

August 17, 2016 at 6:02 AM

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!

November 21, 2016 at 3:41 AM

Post a Comment

http://javarevisited.blogspot.com/2010/10/eclipsetutorialmostusefuleclipse.html 7/8

S-ar putea să vă placă și