Ctrl-D — Duplicate Current Line
Ctrl-D is a simple, lightweight VS Code extension that duplicates the current line downward — just like in many popular editors.
Features
- Duplicate the current line or selection instantly
- Works with any language or file type
- Optional setting to move the cursor down after duplicating
- Fully customizable keybinding
Settings
| Setting |
Default |
Description |
ctrl-d.moveCursorDown |
true |
Move the cursor down to the new line after copying |
Default Keybinding
| Command |
Key |
When |
ctrl-d.duplicateLine |
Ctrl+D |
Editor text focus |
You can change this in Keyboard Shortcuts (Ctrl+K Ctrl+S).
Usage
Place your cursor on any line and press Ctrl+D and
the line will be duplicated directly below.
Feedback
Report bugs or suggest features here:
👉 GitHub: Messdaniel/Ctrl-D
| |