Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>DuplicateNew to Visual Studio Code? Get it now.
Duplicate

Duplicate

L13RARY

|
34,596 installs
| (0) | Free
Duplicate multiple selections and/or lines
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Duplicate

Duplicate multiple selections and/or lines before or after their current positions.

Index

  1. Features
  2. Available Commands
  3. Keyboard Shortcuts
  4. Recommended Extensions

What's new in Duplicate 1.1.0

  • Added support for trusted, virtual and remote workspaces.
  • Changed commands l13Duplicate.after and l13Duplicate.before to l13Duplicate.action.duplicate.after and l13Duplicate.action.duplicate.before.

Features

  • Selections can be duplicated before or after their current position.
  • Carets are duplicating the whole line before or after their current line.

Available Commands

  • Duplicate After Selection - Duplicates multiple selections and/or lines after their current positions and the selections or carets will stay.
  • Duplicate Before Selection - Duplicates multiple selections and/or lines after their current positions and the selections or carets will move.

Keyboard Shortcuts

macOS

  • Ctrl + D -> Duplicate Before Selection
  • Ctrl + Shift + D -> Duplicate After Selection

Windows / Linux

  • Ctrl + Shift + D -> Duplicate Before Selection
  • Ctrl + Alt + Shift + D -> Duplicate After Selection

If the key bindings don't work, please check Preferences -> Keyboard Shortcuts.

Recommended Extensions

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