Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>CTRL-DNew to Visual Studio Code? Get it now.
CTRL-D

CTRL-D

Messdaniel

|
681 installs
| (0) | Free
Copies the current line to the line under
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

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

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft