Skip to content

↑↓ moveEnter openEsc close

Eclipse keyboard shortcuts

Eclipse 2025-09 · 52 shortcuts · checked Nov 2026 · Source: Eclipse Foundation docs

Eclipse is the open-source Java IDE from the Eclipse Foundation. These defaults open types and resources, fix code, refactor, run and debug.

Most used Eclipse keyboard shortcuts

The Eclipse shortcuts worth learning first. The full list follows, grouped by task.

52 shortcuts

Small screen: your system's keys only. Pick another system in the tabs above.

ActionMacWindowsLinux
Open a file (resource)ShiftCmdRCtrlShiftRCtrlShiftR
Open a typeShiftCmdTCtrlShiftTCtrlShiftT
Quick Access (any command)Cmd3Ctrl3Ctrl3
Quick outline of the fileCmdOCtrlOCtrlO
Open the declarationF3F3F3
Open the call hierarchyCtrlOptionHCtrlAltHCtrlAltH
References in the workspaceShiftCmdGCtrlShiftGCtrlShiftG
Go to a lineCmdLCtrlLCtrlL
Last edit locationCtrlQCtrlQCtrlQ
Quick switch editorCmdECtrlECtrlE
Next editorCmdF6CtrlF6CtrlF6
Maximize the active viewCtrlMCtrlMCtrlM
Show Key AssistShiftCmdLCtrlShiftLCtrlShiftL

Editing

13 shortcuts
ActionMacWindowsLinux
Quick fixCmd1Ctrl1Ctrl1
Content assistCtrlSpaceCtrlSpaceCtrlSpace
Format the codeShiftCmdFCtrlShiftFCtrlShiftF
Organize importsShiftCmdOCtrlShiftOCtrlShiftO
Toggle commentCmd/Ctrl/Ctrl/
Add a block commentShiftCmd/CtrlShift/CtrlShift/
Delete the lineCmdDCtrlDCtrlD
Move the line upOption↑Alt↑Alt↑
Move the line downOption↓Alt↓Alt↓
Copy the line downOptionCmd↓CtrlAlt↓CtrlAlt↓
Insert a line belowShiftEnterShiftEnterShiftEnter
Insert a line aboveShiftCmdEnterCtrlShiftEnterCtrlShiftEnter
Source menu (generate getters, constructors)OptionShiftSAltShiftSAltShiftS

Refactoring

5 shortcuts
ActionMacWindowsLinux
RenameOptionShiftRAltShiftRAltShiftR
Extract methodOptionShiftMAltShiftMAltShiftM
Extract a local variableOptionShiftLAltShiftLAltShiftL
InlineOptionShiftIAltShiftIAltShiftI
Refactor menuOptionShiftTAltShiftTAltShiftT
5 shortcuts
ActionMacWindowsLinux
Find and replaceCmdFCtrlFCtrlF
Find nextCmdKCtrlKCtrlK
Find previousShiftCmdKCtrlShiftKCtrlShiftK
Incremental findCmdJCtrlJCtrlJ
Open the Search dialogCtrlHCtrlHCtrlH
ActionMacWindowsLinux
SaveCmdSCtrlSCtrlS
Save allShiftCmdSCtrlShiftSCtrlShiftS
Close the editorCmdWCtrlWCtrlW
Close all editorsShiftCmdWCtrlShiftWCtrlShiftW
New (wizard)CmdNCtrlNCtrlN
Build allCmdBCtrlBCtrlB
Run the last launchShiftCmdF11CtrlF11CtrlF11
Debug the last launchCmdF11F11F11
Toggle a breakpointShiftCmdBCtrlShiftBCtrlShiftB
Step intoDebuggingF5F5F5
Step overDebuggingF6F6F6
Step returnDebuggingF7F7F7
ResumeDebuggingF8F8F8
Run to lineDebuggingCmdRCtrlRCtrlR
Show the key map: which keys Eclipse uses mostDarker orange = used by more shortcuts

Eclipse editing shortcuts: format, comment, duplicate and move lines

System.out.println and main
Type sysout and press Ctrl+Space for System.out.println(), and main then Ctrl+Space for a main method.
Getters, setters and Javadoc
Alt+Shift+S opens the Source menu (then R for getters and setters); Alt+Shift+J adds a Javadoc comment to the method under the cursor.
Uppercase, lowercase and indentation
Ctrl+Shift+X makes the selection uppercase and Ctrl+Shift+Y lowercase. Ctrl+I corrects the indentation of the selected lines.
Assign to a variable
Put the cursor on an expression and press Ctrl+2, then L, to assign it to a new local variable.

Refactoring and code assist in Eclipse

Run and debug Java programs in Eclipse

Change Eclipse keyboard shortcuts, or use them in IntelliJ

Change keys
Window > Preferences > General > Keys (Eclipse > Settings on Mac). Search for a command, click Binding, press the keys and Apply. Restore Defaults undoes your changes.
Eclipse keys in IntelliJ or VS Code
IntelliJ IDEA has a built-in Eclipse keymap in Settings > Keymap; in VS Code, install the Eclipse Keymap extension.

Eclipse keyboard shortcuts: questions

How do I see all Eclipse keyboard shortcuts?
Press Ctrl+Shift+L (Cmd+Shift+L on a Mac) for Key Assist, a list of every shortcut that works in the current view. Press it again to open the Keys preferences.

These are the default key bindings in Eclipse IDE 2025-09, as published by Eclipse Foundation. Shortcuts that need an extension, an add-in or a changed keymap are left out. Where two combinations do the same thing, both are shown.

Single-system lists: Eclipse keyboard shortcuts for Mac, Eclipse keyboard shortcuts for Windows, Eclipse keyboard shortcuts for Linux.

Each shortcut has its own page with the keys for every system, related shortcuts and the same action in other apps. The printable cheat sheet fits the whole list on one or two pages.