Duplicate a line keyboard shortcut in 8 apps
Duplicate a line has a documented keyboard shortcut in 8 apps here, among them Android Studio, DBeaver, IntelliJ IDEA, Notepad++. The most common keys are Ctrl + D on Windows and Cmd + D on a Mac.
Keys on this page were last checked against their sources on September 14, 2026.
| App | Windows | Mac | What it does |
|---|---|---|---|
| Android Studio | Windows Ctrl + D | Mac Cmd + D | Duplicate the line or selection |
| DBeaver | Windows Ctrl + Alt + Down arrow | Mac Option + Cmd + Down arrow | Duplicate the selected lines downward |
| IntelliJ IDEA | Windows Ctrl + D | Mac Cmd + D | Duplicate the current line |
| Notepad++ | Windows Ctrl + D | Mac Not documented | Duplicate the line or selection |
| Sublime Text | Windows Ctrl + Shift + D | Mac Cmd + Shift + D | Duplicate the line |
| Visual Studio Code | Windows Shift + Alt + Down arrow | Mac Shift + Option + Down arrow | Copy a line beneath itself |
| Visual Studio Code | Windows Shift + Alt + Up arrow | Mac Not documented | Copy line above |
| Zed | Windows Shift + Alt + Down arrow | Mac Option + Shift + Down arrow | Duplicate the line below |
What most apps settled on for Duplicate a line
On Windows, Ctrl + D is the combination in 3 of the 7 apps here that document one. On a Mac, it is Cmd + D in 2 of 6. 4 apps go their own way on Windows, and the table above is where to find them.
Where the table is deliberately empty
2 apps here publish no Mac key for Duplicate a line, so those cells are left blank. A blank there is a gap in that maker documentation for Duplicate a line, not an oversight here, and it is never filled by converting the other system.
If the keys for Duplicate a line do nothing
The 8 apps listed here each decide this for themselves, so the first thing to check is that you are reading the row for the app you are actually in, and the column for your system. After that, check the app version, since duplicate a line is the kind of command makers move between releases. Report a correction
Looking for everything one app can do? Browse apps