Duplicate line down: the shortcut in 9 apps
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.
| App | Mac | Windows | Linux |
|---|---|---|---|
| CursorCopy the line down | OptionShift↓ | AltShift↓ | CtrlAltShift↓ |
| EclipseCopy the line down | OptionCmd↓ | CtrlAlt↓ | CtrlAlt↓ |
| IntelliJDuplicate the line or selection | CmdD | CtrlD | CtrlD |
| Visual StudioDuplicate the line or selection | — | CtrlD | — |
| PyCharmDuplicate the line | CmdD | CtrlD | CtrlD |
| Sublime TextDuplicate the line | ShiftCmdD | CtrlShiftD | CtrlShiftD |
| VS CodeCopy line down | OptionShift↓ | AltShift↓ | CtrlAltShift↓ |
| WebStormDuplicate the line | CmdD | CtrlD | CtrlD |
| ZedDuplicate the line | ShiftCmdD | CtrlShiftD | CtrlShiftD |
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.