Over a million developers have joined DZone.

Eclipse Shortcuts for a Productive Workflow

DZone's Guide to

Eclipse Shortcuts for a Productive Workflow

This collection of useful shortcuts for the Eclipse IDE will help you streamline your workflow for better productivity in navigation, plugins, and more.

· DevOps Zone ·
Free Resource

Do you need to strengthen the security of the mobile apps you build? Discover more than 50 secure mobile development coding practices to make your apps more secure.

I hope this list of my favorite Eclipse shortcuts will help your workflow become more productive. The shortcuts are divided into the following areas:

  • Navigation
  • General Purpose Editing
  • Java Editor
  • Plug-in Development
  • Workbench


Switching Between Open Editors

  • Ctrl + E = Display a filterable list of open editors. Image title
  • Ctrl + Shift + E = Display the Switch to Editor window.Image title
  • Ctrl + F6 = Display a list of open editors.Image title
  • Ctrl + Page Up and Ctrl + Page Down—Navigate to previous or next file from the list of open files.
  • Ctrl + Shift + T—Display a list of classes from the workspace.
  • Ctrl + Shift + R—Display a list of resources from the workspace.

Navigating within Editors

  • Ctrl + , and Ctrl + .—Navigate between markers in the current editor.
  • Alt + ← and Alt + →—Go to previous or next edit positions from the editor history list.
  • Ctrl + O—Quick outline (select editors only).
  • Ctrl + J—Incremental find. Note: Just press Ctrl+J and start typing the search text. Eclipse finds and highlights the next match as you type.Use Up or Down Arrow keys to jump to the next or previous match.
  • Ctrl + L—Go to line from editor.
  • Ctrl + Q—Go to last edit location.
  • Ctrl + Shift + P—Navigate to matching bracket/brace.

Navigating the Workspace

  • Ctrl + F7—Display a list of open views and on selection select the resource on the view if relevant.Image title
  • Ctrl + F8—Displays list of open perspectives.

General Purpose Editing Shortcuts

  • Ctrl + Alt + G—Perform a file search for the current word in the workspace and highlight occurrences in the current editor.
  • Ctrl + Shift + F—Format file.
  • Ctrl + Shift + C—Single line comment/uncomment.
  • Ctrl + Shift + / and Ctrl + Shift + \—Block comment/uncomment.
  • Ctrl + D—Delete the entire line, wherever the cursor position is. Works on most of the file editors.
  • Alt + Shift + R—Rename a resource/selection.

Java Editor Shortcuts

  • Ctrl + T—Display a popup with the type hierarchy of the selected element.Image title
  • F4—For something more permanent than the quick type hierarchy above, press F4 on a selected object in a class to display the type hierarchy view.
  • Ctrl + Shift + T—Display a list of classes from the workspace.
  • Ctrl + Alt + H—Open call hierarchy of a method.
  • F2—Press F2 on a selected object in a class to see the quick Javadoc without having to hover the mouse on the object.Image title
  • F3—Open Declaration. Note: Works only when valid selection is made on the Navigator/Editor. For invalid selections, no action is performed.

Plug-in Development Shortcuts

Note: Include org.eclipse.pde.runtime plug-in, for Plug-in Spy functionality.

  • Shift + Alt + F1—Plug-in Selection Spy.Image title
  • Shift + Alt + F2—Plug-in Menu Spy. Image title
  • Shift + Alt + F3—Shows resource contribution details. Shows details on which plug-in contributed the resource, selection could be any tree item on the navigator, editor.Image title
  • Ctrl + Shift + Alt + M—Finds manifest for current selection in the workspace. Quickly find the manifest file of the project without having to browse through the project in explorer.
  • Ctrl + Shift + A—Opens Plugin-Artifact. Lists all projects in the workspace with a manifest and opens up the manifest file of the selected project in a Manifest Editor.

Workbench Shortcuts

  • Ctrl + 3—Quick access shortcut. My favorite! The quick access feature allows you to do everything, from open views and create files to invoke commands/actions and everything in between.Image title
  • Shift + Alt + N—New Wizard dropdown action shortcut. (Same as File>New menu based on current perspective.)
  • Ctrl+N—Create a new project using the Wizard.Image title
  • Alt + Enter—Shows properties of a resource, can be used from Editors/Navigators.
  • Ctrl + Shift + L—provides a full list of global key bindings for the workbench. Note: Repeat Ctrl + Shift + L to display the Preferences for keys and modify key bindings.You can switch from the default scheme to Emacs if you prefer; however, some of the shortcuts in this article will change. Please refer to this link for detailed help.Image title


eclipse-shortcuts—Printable version of this shortcut guide.

Let Us Hear from You!

If you have any comments or questions, we would love to hear from you @MyEclipseIDE on twitter or via the MyEclipse forum. Happy coding! If you’re not already subscribing to our blogs, why not do it today? Log in to subscribe.

Check out tips for blazing the way from agile to DevSecOps with security built into your mobile app toolchain.

eclipse ,shortcuts ,devops ,ide

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}