Skip to content

↑↓ moveEnter openEsc close

Duplicate line down: the shortcut in 9 apps

9 apps · Mac, Windows and Linux

On Mac it is usually Cmd+D (3 of 8 apps); on Windows it is usually Ctrl+D (4 of 9 apps); on Linux it is usually Ctrl+D (3 of 8 apps). The table shows where each app agrees and where it differs.

AppMacWindowsLinux
CursorCopy the line downOptionShift↓AltShift↓CtrlAltShift↓
EclipseCopy the line downOptionCmd↓CtrlAlt↓CtrlAlt↓
IntelliJDuplicate the line or selectionCmdDCtrlDCtrlD
Visual StudioDuplicate the line or selection—CtrlD—
PyCharmDuplicate the lineCmdDCtrlDCtrlD
Sublime TextDuplicate the lineShiftCmdDCtrlShiftDCtrlShiftD
VS CodeCopy line downOptionShift↓AltShift↓CtrlAltShift↓
WebStormDuplicate the lineCmdDCtrlDCtrlD
ZedDuplicate the lineShiftCmdDCtrlShiftDCtrlShiftD

Small screen: your system's keys only. Open an app's row for every system.

A dash means the app has no default binding, or does not run, on that system. Open a row for notes and the full key details.

How the apps compare

  • Mac: Cmd+D in IntelliJ, PyCharm and WebStorm; Option+Shift+↓ in Cursor; Option+Cmd+↓ in Eclipse; Cmd+Shift+D in Sublime Text; Shift+Option+↓ in VS Code; Shift+Cmd+D in Zed.
  • Windows: Ctrl+D in IntelliJ, Visual Studio, PyCharm and WebStorm; Ctrl+Shift+D in Sublime Text and Zed; Alt+Shift+↓ in Cursor; Ctrl+Alt+↓ in Eclipse; Shift+Alt+↓ in VS Code.
  • Linux: Ctrl+D in IntelliJ, PyCharm and WebStorm; Ctrl+Shift+D in Sublime Text and Zed; Ctrl+Alt+Shift+↓ in Cursor; Ctrl+Alt+↓ in Eclipse; Ctrl+Shift+Alt+↓ in VS Code.

Learn it by pressing it: Cursor shortcuts practice, Eclipse shortcuts practice, IntelliJ shortcuts practice, Visual Studio shortcuts practice, PyCharm shortcuts practice, Sublime Text shortcuts practice, VS Code shortcuts practice, WebStorm shortcuts practice or Zed shortcuts practice.