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

Right-Click Duplicate

Dollar Digital

|
2 installs
| (0) | Free
Right-click a file in the Explorer and create a copy of it in the same folder, with an automatically incremented name.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Duplicate File

Right-click any file in the VS Code Explorer → Duplicate → creates a copy right next to it, named <file> (copy).<ext>, <file> (copy 2).<ext>, and so on. Works on multi-selected files too.

Usage

  1. Right-click a file (or select several, then right-click).
  2. Click Duplicate.
  3. The copy opens automatically (toggle via the duplicateFile.openAfterDuplicate setting).

Install

npx @vscode/vsce package
code --install-extension duplicate-file-0.0.1.vsix

Reload VS Code after installing.

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