What are some of your favorite Eclipse keyboard shortcuts?
Author: Deron Eriksson
Description: This is a listing of some of my favorite Eclipse keyboard shortcuts.
Tutorial created using: Windows XP || JDK 1.5.0_09 || Eclipse Web Tools Platform 1.5.1


One way to easily improve your speed with EclipseSW is to use keyboard shortcuts rather than your mouse for certain tasks. A couple seconds here and there really add up. Here are some of my personal favorite keyboard shortcuts:

  • control-F4 - close current editor window
  • control-shift-F4 - close all editor windows
  • control-F6 - switch between editor windows
  • control-F7 - switch between views
  • control-F8 - switch between perspectives
  • control-space - code completion
  • control-1 - quick fix
  • F3 - (or control-click) - jumps to the class/method at your cursor
  • F4 - shows class hierarchy
  • F11 - launch the last debug configuration (in debug mode)
  • Alt-r, followed by t - stop the debug configuration
  • F12 - give focus to the editor window
  • Highlight text and control-/ - comment/uncomment code
  • control-j - incremental find
  • control-m - expand/contract current editor window
  • control-shift-f - format code
  • control-shift-g - searches for references to selected class/method/etc
  • control-shift-o - organize imports (automatically fix your class imports)
  • control-shift-r - open resource - great search utility
  • control-shift-t - open type (Java class/interface finder)
  • Standard Windows shortcuts also apply (home, end, control-home, control-end, control-leftArrow, control-rightArrow, all these in combination with shift, etc)