Skip to main content

Useful Eclipse Shortcut Keys

Shortcut keys make life that little bit quicker! They aid you in working faster and become very handy when programming in Eclipse.

For a full list of shortcuts, in Eclipse 3.1 and above you can press Ctrl+Shift+L for a handy popup.



Find Java Type

Start typing the name and the list gets smaller. Try typing the capital letters of the class only (e.g. type "CME" to find "ConcurrentModificationException")


Find Resource

Use this to look for XML files, text files, or files of any other type. which are in your workspace.


Open Editor Drop-Down

Presents a popup window listing currently opened files. Start typing to limit the list or simply use the down arrow key.


Quick Outline

Use this to find a method or a member variable in a class. Start typing to limit the choices. Press Ctrl+O a second time to include inherited methods.


Content Assist

Context sensitive content completion suggestions while editing Java code.


Context Information

If typing a method call with several parameters use this to show the applicable parameter types. The current parameter where the cursor is will be shown in bold.


Organize Imports

After typing a class name use this shortcut to insert an import statement. This works if multiple class names haven't been imported too.


Open Declaration

Drills down to the declaration of the type, method, or variable the cursor is on. This works much like a browser hyperlink.


Backward History

This works like a browser's Back button.


Forward History

This works like a browser's Forward button


Go to Line

Go to a specific line number.


Open Type Hierarchy

Show the type hierarchy (downward tree) or the supertype hierarchy (upward tree).


Open Call Hierarchy

Show where a method is called from. In the Call Hierarchy view keep expanding the tree to continue tracing the call chain.


Open Search Dialog

Opens a search dialog with extensive search options for Java packages, types, methods, and fields.


Rename - Refactoring

Use this to rename type, method, or field. All existing references will be refactored as well.


Extract Local Variable

Use this to create a local variable from the selected expression. This is useful for breaking up larger expressions to avoid long lines.


Extract Method

Use this to extract a new method from existing code. The parameter list and return type will be automatically created.


Select Enclosing Element / Restore Last Selection / Select Previous Element /
Select Next Element

Useful for selecting context-sensitive blocks (e.g. surrounding loop, method, class, etc.)


Scroll Line Up / Scroll Line Down

Very handy if you want to scroll by 1 line without changing your cursor position or using the mouse.


Go to Previous Member / Go to Next Member

Great for stepping down through the methods of a Java source file.


Show Occurrences in File / Remove Occurrences Annotations

Use this to search within the same file - useful for occurrences of private fields and methods.


Go to Matching Bracket

Helps to find the closing bracket of lengthly if-else statements.


Incremental Find / Reverse Incremental Find

The first matching occurrence is shown with each typed letter. Press again and the next matching occurrence is shown.


Insert Line Below / Insert Line Above

Insert a line above or below the current line.


Add Block Comment / Remove Block Comment

Comment in/out blocks of code with a key stroke.


Maximize Active View or Editor

Maximize the current view or editor at the expense of all other currently shown views. Press again to restore to normal view.


Next Editor / Next View / Next Perspective

Learn these to switch among edited files, open views and perspectives.


Duplicate Lines / Copy Lines

Doesn't seem like it at first but a great shortcut once you learn to use it. Instead of select, copy and paste simply select and duplicate without affecting the clipboard.


Word Completion

This is excellent for code editing or writing plain help files with variables and other words having no English language equivalents. The word completion is based on the set of words already present in the current file.


Correct Indentation

Select a block of Java code or an entire class file and use this shortcut to correct its indentation.

Popular posts from this blog

Ubuntu Linux shortcut keys

General keyboard shortcutsCtrl + A = Select all
Ctrl + C = Copy the highlighted content to clipboard
Ctrl + V = Paste the clipboard content
Ctrl + N = New (Create a new document, not in terminal)
Ctrl + O = Open a document
Ctrl + S = Save the current document
Ctrl + P = Print the current document
Ctrl + W = Close the close document
Ctrl + Q = Quit the current application Keyboard shortcuts for GNOME desktopCtrl + Alt + F1 = Switch to the first virtual terminal
Ctrl + Alt + F2(F3)(F4)(F5)(F6) = Select the different virtual terminals
Ctrl + Alt + F7 = Restore back to the current terminal session with X
Ctrl + Alt + Backspace = Restart GNOME
Alt + Tab = Switch between open programs
Ctrl + Alt + L = Lock the screen.
Alt + F1 = opens the application menu
Alt + F2 = opens the Run Application dialog box.
Alt + F3 = opens the Deskbar Applet
Alt + F4 = closes the current window.
Alt + F5 = unmaximizes the current window.
Alt + F7 = move the current window
Alt + F8 = resizes the current window.
Alt + F9 = minimizes …

Viewing Your IP Address Information

There are several ways you can determine your IP address information: IPCONFIG Start / Run / cmdIPCONFIG /ALLThis opens a command window. One advantage is that you can send the information to a text file (IPCONFIG /ALL > c:\ip.txt)
But sometimes the window shows show much information you need to scroll around to fine it. VIEW STATUS Control Panel / Network Connections / Double click the iconsfor your network (If the network has an icon in the system tray you can also just double click on that icon)Click on the Support tabClick on the Details button