8 Most Useful Keyboard Shortcuts For Beginner Eclipse IDE Users

Ads by Google

eclipse keyboard shortcutsI recently had two pair assignments for class, each of which had to be with a different classmate. With the object of programming for Java, we utilized Eclipse as our IDE simply because that was what we were taught to use. I tried learning VIM editor keyboard shortcuts, but I have not been using it daily so I was fine with using Eclipse, which seemed to make everything a lot easier. You can see a list of all the files in your Java (or Android for that matter) project in the package explorer, easily navigate to the desired function with the outline window, get suggestions for functions, imports, and more.

Anyhow, since my partners and I worked with Eclipse, my first partner taught me a few keyboard shortcuts, which I then taught to my second partner, whom did not use “sysout” or any Eclipse shortcuts (if you do not know what “sysout” means, you’re reading the right article!). Thus, the reason for this post was born – to go over some very useful keyboard shortcuts for actions you’ll probably perform often.

If you are a frequent reader of this post and have contemplated programming for a little while, ponder no longer. We at MakeUseOf have compiled a few lists to websites that will guide you through Java (or C++) lessons and examples. What if you’re unsure of what language to start with? We also have you covered with suggestions for web and software development. So once you’re done browsing through our development collection, feel inspired to start programming, and have Eclipse installed, you might want find the following tips useful.

Control + Shift + O: Import

If you’re going to use ArrayList, LinkedList or any other such data structure class from the Java Collections Framework, you will need the following lines above your class declaration and constructor.

import java.awt.List;
import java.util.ArrayList;

public class Hello {
  public static void main(String[] args) {
    System.out.println("Hello World!");
  }
}

Instead of having to type the import lines, you could just write your code first in the editor and whenever you see red squiggly lines signaling that you need to import a specific class, all you have to do is press Ctrl + Shift + O and ALL the unknown types will be imported. No more going into the focus popup and pressing Import for each class.

Control + I: Indent

Is your code looking like this at times?

Ads by Google

eclipse keyboard shortcuts

Simply highlight the code portion that looks hard to read, press Ctrl + i to indent everything nicely.

keyboard shortcuts eclipse

Control + D: Delete Line

If you need to delete a line, you might usually highlight the entire line with your mouse (or with the Home or End buttons) and delete the new line character every time. Try Ctrl + D for quick whole-line deletion. It will be like the line was never even there, no final new line character touchups necessary.

keyboard shortcuts eclipse

Control + Space: Auto-Complete Variable Or Function Name

If you have declared and initialized at least one variable or even function or method, you can type the first few letters of the variable or function name, hit Ctrl + Space to auto-complete it. This will work well if you have very unique variable or function names, because otherwise, you’ll have to choose among the distinct names in a focus popup window.

keyboard shortcuts eclipse

Sysout + Control + Space: Puts System.out.println()

If you ever need to type out a print statement, in particular, “System.out.println()”, there’s a shortcut for this: Simply type out the word “sysout” and then hit Ctrl + Space.

eclipse ide keyboard shortcuts

Control + H: Search Your Entire Project

When you’re working on projects with numerous classes that rely on each other, sometimes you might forget where it was you declared a specific function or variable. If that’s the case, Ctrl + h will come in handy as it lets you search through not just the class you’re working on, but the entire project folder.

eclipse ide keyboard shortcuts

Control + F11: Run

If you’re constantly pressing on Run As > Java Application, you can instead press on Ctrl + F11 to run your program.

eclipse keyboard shortcuts

Alt + Shift + R: Rename

When you want to rename a variable or a function, you don’t have to re-type every single instance of the old variable or function name, nor do you have to right-click on the name and select Refactor > Rename when you can simply press Alt + Shift + R to rename ALL the instances.

eclipse_shortcuts_rename

What other handy tips do you have for beginners? Let us know in the comments below!

Join live MakeUseOf Groups on Grouvi App Join live Groups on Grouvi
Awesome Internet (and Tips)
Awesome Internet (and Tips)
1393 Members
Stay Anonymous Online
Stay Anonymous Online
1022 Members
Deep Web Links & Tips
Deep Web Links & Tips
686 Members
Web Security & Privacy
Web Security & Privacy
498 Members
Music Apps & Sites
Music Apps & Sites
387 Members
Affiliate Disclamer

This article may contain affiliate links, which pays us a small compensation if you do decide to make a purchase based on our recommendation. Our judgement is in no way biased, and our recommendations are always based on the merits of the items.

For more details, please read our disclosure.
New comment

Please login to avoid entering captcha

Log In