Tuesday, April 26, 2016

Important Eclipse Shortcuts for Beginners - Become More Productive

In this series of video tutorials, we will learn about various keyboard shortcuts present in Eclipse.These keyboard shortcuts make you productive in using Eclipse. Let's get started.

1. Important Eclipse Keyboard Shortcuts

Let's start with an overview of the important keyboard shortcuts in Eclipse.
  • Alt + Up Arrow (Down Arrow) -> Move Code
  • Ctrl + Shift + R (and T)
  • Ctrl + T (type hierarchy)
  • + / (comment)
  • + D (delete line)
  • + L (Goto line)
  • + Q (Last edit)
  • + O (Outline)
  • Alt + Shift + X
  • Ctrl + Shift + L
  • F3 (Goto declaration)
  • F4 (Type Hierarchy)
  • Bread Crumb
  • Mark Occurences

2. Eclipse Keyboard Shortcuts to Format Java Code

In this video tutorial, let's learn the options and keyboard shortcuts available in Eclipse to format source code.

3. Eclipse Keyboard Shortcuts to Refactor Java Code

In this video tutorial, we will look at various refactoring options available in Eclipse to improve the structure of your Java Code. Let start with renaming methods, variables & classes and move on to more complex refactoring's like Extract Method, Extract Constant, Introduce Parameter.

  • Alt+Shift + R
  • M
  • I
  • T
  • L
  • Change Method Signatures
  • Move Method

4. Eclipse Keyboard Shortcuts to Generate Java Code

In this video tutorial, let's understand different options in Eclipse to Generate Java Source Code. Let's start with generating Getters and Setters. We will move on to generating toString, equals and more.
Code Generation
Alt + Shift + S
  • Getters and Setters
  • toString()
  • equals()
  • hashcode()