Skip to content

↑↓ moveEnter openEsc close

Insert a line above in Eclipse

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

In Eclipse IDE, press Shift+Cmd+Enter (Mac), Ctrl+Shift+Enter (Windows, Linux).

What else uses Shift+Cmd+Enter? · What else uses Ctrl+Shift+Enter?

More Eclipse shortcuts: editing

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↓

All 13 in editing · All 52 Eclipse shortcuts