Eclipse Keyboard Shortcuts

Complete Eclipse keyboard shortcuts reference — 145 shortcuts across 8 categories. Quick reference cheat sheet for Windows & Linux.

Eclipse's keymap predates most other IDEs and shows it: many bindings are two-key chords and several actions have different keys from VS Code or IntelliJ. The upside is that one shortcut, Ctrl + 3, finds any command by name, so you can be productive before memorising the rest. The table is the default Windows/Linux keymap for the Java tooling.

General & Workbench (14)

ShortcutAction
Ctrl + 3Find Actions (Quick Access)
Ctrl + Shift + LShow Key Assist
Ctrl + Shift + ROpen Resource
Ctrl + Shift + TOpen Type
Ctrl + Shift + HOpen Type in Hierarchy
Ctrl + SSave
Ctrl + Shift + SSave All
Ctrl + PPrint
Ctrl + BBuild All
Alt + EnterProperties
Alt + Shift + NNew Menu
Alt + Shift + WShow In
F5Refresh
DeleteDelete

Editors, Views & Perspectives (24)

ShortcutAction
Ctrl + F4Close Editor
Ctrl + Shift + WClose All Editors
Ctrl + MMaximize Editor or View
Ctrl + EQuick Switch Editor
Ctrl + Shift + ESwitch to Editor
F12Activate Editor
Ctrl + F6Next Editor
Ctrl + Shift + F6Previous Editor
Ctrl + F7Next View
Ctrl + Shift + F7Previous View
Ctrl + F8Next Perspective
Ctrl + Shift + F8Previous Perspective
Ctrl + Page DownNext Tab
Ctrl + Page UpPrevious Tab
Ctrl + Shift + -Toggle Split Editor
Alt + Shift + Q, PShow Package Explorer
Alt + Shift + Q, OShow Outline
Alt + Shift + Q, XShow Problems
Alt + Shift + Q, TShow Type Hierarchy
Alt + Shift + Q, JShow Javadoc
Alt + Shift + Q, DShow Declaration
Alt + Shift + Q, BShow Breakpoints
Alt + Shift + Q, VShow Variables
Alt + Shift + Q, QShow View Dialog

Editing (29)

ShortcutAction
Ctrl + ZUndo
Ctrl + YRedo
Ctrl + XCut
Ctrl + CCopy
Ctrl + VPaste
Ctrl + DDelete Line
Alt + UpMove Lines Up
Alt + DownMove Lines Down
Ctrl + Alt + UpDuplicate Lines
Ctrl + Alt + DownCopy Lines
Ctrl + Alt + JJoin Lines
Shift + EnterInsert Line Below
Ctrl + Shift + EnterInsert Line Above
Ctrl + BackspaceDelete Previous Word
Ctrl + DeleteDelete Next Word
Ctrl + Shift + DeleteDelete to End of Line
Ctrl + Shift + XTo Upper Case
Ctrl + Shift + YTo Lower Case
InsertToggle Overwrite
Ctrl + ICorrect Indentation
Ctrl + Shift + FFormat
Ctrl + /Toggle Comment
Ctrl + Shift + /Add Block Comment
Ctrl + Shift + \Remove Block Comment
Alt + Shift + AToggle Block Selection
Alt + Shift + YToggle Word Wrap
Alt + /Word Completion
Ctrl + =Zoom In
Ctrl + -Zoom Out

Navigation & Search (22)

ShortcutAction
Ctrl + LGo to Line
Ctrl + QLast Edit Location
Ctrl + Alt + LeftPrevious Edit Location
Ctrl + Alt + RightNext Edit Location
Ctrl + HomeGo to Start of File
Ctrl + EndGo to End of File
Ctrl + LeftPrevious Word
Ctrl + RightNext Word
Ctrl + Shift + LeftSelect Previous Word
Ctrl + Shift + RightSelect Next Word
HomeLine Start
EndLine End
Shift + HomeSelect to Line Start
Shift + EndSelect to Line End
Ctrl + UpScroll Line Up
Ctrl + DownScroll Line Down
Ctrl + FFind and Replace
Ctrl + KFind Next
Ctrl + Shift + KFind Previous
Ctrl + JIncremental Find
Ctrl + Shift + JIncremental Find Reverse
Ctrl + ASelect All

Java Editor (27)

ShortcutAction
Ctrl + SpaceContent Assist
Ctrl + 1Quick Fix
Ctrl + 2, RRename in File
Ctrl + 2, LAssign to Local Variable
Ctrl + 2, FAssign to Field
Ctrl + 2, MExtract to Method
Ctrl + OQuick Outline
Ctrl + TQuick Type Hierarchy
Ctrl + Shift + OOrganize Imports
Ctrl + Shift + MAdd Import
F3Open Declaration
F4Open Type Hierarchy
Ctrl + Alt + HOpen Call Hierarchy
Ctrl + Shift + GReferences in Workspace
Ctrl + GDeclarations in Workspace
Shift + F2Open Attached Javadoc
Ctrl + Shift + PGo to Matching Bracket
Ctrl + Shift + UpPrevious Member
Ctrl + Shift + DownNext Member
Ctrl + F3Open Structure
Alt + Shift + OToggle Mark Occurrences
Ctrl + Shift + UOccurrences in File
Alt + Shift + UpSelect Enclosing Element
Alt + Shift + DownRestore Last Selection
Alt + Shift + LeftSelect Previous Element
Alt + Shift + RightSelect Next Element
Alt + Shift + BShow in Breadcrumb

Refactoring (11)

ShortcutAction
Alt + Shift + RRename
Alt + Shift + MExtract Method
Alt + Shift + LExtract Local Variable
Alt + Shift + IInline
Alt + Shift + CChange Method Signature
Alt + Shift + VMove
Alt + Shift + KMake Static
Alt + Shift + ZSurround With
Alt + Shift + SSource Quick Menu
Alt + Shift + TRefactor Quick Menu
Alt + Shift + JAdd Javadoc Comment

Run & Debug (11)

ShortcutAction
Ctrl + F11Run
F11Debug
F6Step Over
F7Step Return
F8Resume
Ctrl + Shift + BToggle Breakpoint
Ctrl + RRun to Line
Ctrl + F2Terminate
Shift + F5Use Step Filters
Shift + F8Resume Other Threads
Alt + BSkip All Breakpoints

Folding & Display (7)

ShortcutAction
Ctrl + Numpad /Toggle Folding
Ctrl + Numpad *Expand All
Ctrl + Shift + Numpad /Collapse All
Ctrl + Numpad +Expand
Ctrl + Numpad -Collapse
Ctrl + Shift + QToggle Quick Diff
Ctrl + F10Ruler Context Menu
📄 View Printable Cheat Sheet — Download as PDF or print · 🧩 Combine with other tools

Related Shortcut Pages

IntelliJ IDEA Android Studio Visual Studio VS Code WebStorm JetBrains Rider

Search 18,500+ shortcuts across 268 platforms

Explore All Platforms Practice Shortcuts
📜 Every shortcut on this page is taken from the official Eclipse documentation — github.com
🔧 Spotted an error or a missing shortcut? Suggest an edit on GitHub — every accepted fix goes live on this page, the API and the CLI.

Three shortcuts to learn first

Ctrl + 3 is Quick Access: type part of any command, view or preference name and run it. Ctrl + Shift + R opens any resource by name and Ctrl + Shift + T any Java type, including ones inside jars on the classpath. Ctrl + Shift + L shows the key assist list of every binding available in the current context, which doubles as the built-in version of this page.

Editing quirks

Ctrl + D deletes the current line — not duplicate, as in JetBrains tools; duplicating is Ctrl + Alt + Down. Ctrl + Shift + F formats the file, Ctrl + Shift + O organises imports (adds missing, removes unused), and Ctrl + 1 opens Quick Fix on the marker under the cursor, which is Eclipse's Alt + Enter. Alt + Up and Alt + Down move lines, Ctrl + Alt + J joins them, and Alt + Shift + A toggles block (column) selection for editing aligned text.

Navigation and refactoring

F3 opens the declaration of the element under the cursor and Ctrl + Alt + H its call hierarchy; Ctrl + Shift + G finds references across the workspace. Ctrl + O shows a quick outline of the current file for jumping to a member. Refactorings use Alt + Shift: Alt + Shift + R renames, Alt + Shift + M extracts a method, Alt + Shift + L extracts a local variable and Alt + Shift + I inlines. Alt + Shift + T opens the refactor menu when you cannot remember which chord you want.

Running and debugging

Ctrl + F11 runs and F11 debugs the last launched configuration (or the current file, depending on preferences). In the debugger, F6 steps over, F7 steps out — Eclipse calls it "step return" — and F8 resumes; note this differs from both the JetBrains and Xcode assignments. A breakpoint on the current line is Ctrl + Shift + B; Ctrl + R runs to the line under the cursor without setting one.

Frequently asked questions

How do I find a command I do not know the shortcut for?

Ctrl + 3 opens Quick Access. Type a few letters of the command name and press Enter.

What is Eclipse's equivalent of Alt + Enter?

Ctrl + 1 (Quick Fix) shows fixes and refactorings for the element under the cursor.

Why does Ctrl + D delete my line?

That is the Eclipse default. Duplicate lines with Ctrl + Alt + Down (or Up).

What is Step Return?

F7 runs until the current method returns to its caller — the same as Step Out in other debuggers.

🤖 Ask AI about Eclipse shortcuts

Open your assistant with this page preloaded as the source — great for follow-up questions like "which of these work in other apps?"

ChatGPT Claude Perplexity Gemini Grok