DEV Community

Cover image for Eclipse Shortcuts for Java Developers
MarudhuPandiyan
MarudhuPandiyan

Posted on

Eclipse Shortcuts for Java Developers

Here are the top 30 Eclipse shortcuts for Java programmers:
F3: Jumps to include file or variable declaration/definition.
Alt + Left and Alt + Right: Navigate through source files (back and forward).
Ctrl + Space: Content assist for proposing methods, member variables, and more.
Ctrl + 3: Quick access to views, perspectives, and more.
Ctrl + M: Maximizes the current view or editor (can be toggled).
Ctrl + Shift + /: Insert block comment, remove it again with Ctrl + Shift + .
Ctrl + Shift + T: Open an element with wildcard support.
Ctrl + F7: Switch to next view, iterate to the next view with Ctrl + Shift + F7.
Ctrl + Alt + H: Opens the call hierarchy.
Ctrl + O: Open the Quick Outline View.
Ctrl + F: Find in current editor.
Ctrl + 1: QuickFix.
Ctrl + H: Search.
Ctrl + L: Go to line.
Alt + Shift + W: Show a class in package explorer.
Ctrl + Shift + Up and Down: Navigate from member to member (variables and methods).
Ctrl + K and Ctrl + Shift + K: Find next/previous.
F4: See the type hierarchy of a class.
Ctrl + F4 or Ctrl + W: Close current file or all files.
Ctrl + T: Toggle between supertype and subtype.
Ctrl + E: Go to other open editors.
Ctrl + .: Move to next problem in a file, and Ctrl + , for the previous problem.
Alt + ← and Alt + →: Hop back and forth through the files you have visited.
Ctrl + Shift + G: Search the workspace for references to the selected method or variable.
Ctrl + Shift + L: View the listing for all Eclipse keyboard shortcuts.
Alt + Shift + J: Add Javadoc at any place in the Java source file.
Ctrl + Shift + P: Find a closing brace.
Alt + Shift + X, Q: Run Ant build file using keyboard shortcuts in Eclipse.
Ctrl + Shift + F: Autoformatting.
Ctrl + Shift + F: Format.
These shortcuts can significantly improve your productivity while working in Eclipse.
Youtube video link: 40+ Eclipse keyboard shortcuts for java developers

Top comments (0)