Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Copy Paste FileNew to Visual Studio Code? Get it now.
Copy Paste File

Copy Paste File

iNewTech

|
20 installs
| (0) | Free
copy paste file to same location
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copy Paste File

A powerful Visual Studio Code extension for file operations — duplicate files & folders, copy content to clipboard, gather files for AI context, and move/copy files across your workspace.

Features

Duplicate File / Folder

Creates a copy of the selected file or folder in the same directory. Automatically suggests a smart name with a _copy suffix (e.g., app_copy.ts) and increments if copies already exist. For folders, the entire directory tree is duplicated recursively.

Copy File Content

Copies the entire content of a selected file to the clipboard with one click.

Copy Files for AI Context

Select one or more files or folders and copy them to the clipboard in AI-friendly markdown format — perfect for pasting into ChatGPT, Claude, or any LLM. Includes:

  • A file tree overview of the selected items
  • Full file contents wrapped in language-specific code blocks
  • Smart filtering: skips binary files and files larger than 512 KB
  • Append mode: if your clipboard already contains an AI context block, new files are appended instead of replacing it

Copy Open Editors for AI Context

Copies all currently open editor tabs to the clipboard in the same AI-friendly markdown format. Great for quickly sharing your working context with an AI assistant.

Copy Selected Content for AI

Select any lines, paragraph, or snippet inside an editor and copy just that selection in AI-friendly markdown format. The clipboard output includes the file path, code fence language, and selected line range so the pasted context is clearly marked.

Move File To... / Copy File To...

Move or copy files and folders to any location in your workspace:

  • Browse all workspace folders with a quick-pick list
  • Recently used destinations appear at the top for fast access
  • Create new folders on the fly without leaving VS Code
  • Smart conflict handling — overwrite, auto-rename, or cancel

Usage

Context Menu (Explorer)

Right-click any file or folder in the Explorer sidebar to access all commands.

Context Menu (Editor)

Right-click inside an open editor for Duplicate File, Copy File Content, Move File To, and Copy File To.

When text is selected, the same menu also shows Copy Content for AI to copy only the selected portion with AI context formatting.

Editor Tab Context Menu

Right-click an editor tab to access Copy Open Editors for AI Context.

Command Palette

Open the Command Palette (Cmd+Shift+P / Ctrl+Shift+P) and search for any command by name.

Release Notes

3.2.0

  • New: Copy Content for AI — right-click selected text in the editor to copy only that snippet in AI-ready markdown format
  • Selected AI snippets now include clear file and line markers for better pasted context
  • AI context formatting is now consistent across file, open-editor, and selected-content copy flows

3.1.0

  • Copy Files for AI Context: append-to-clipboard support — selecting more files adds to the existing AI context instead of replacing it
  • Improved file tree rendering and summary messages

3.0.0

  • New: Copy Files for AI Context — select files/folders to copy in AI-ready markdown format
  • New: Copy Open Editors for AI Context — copy all open tabs for AI context
  • New: Move File To... — move files/folders to any workspace location
  • New: Copy File To... — copy files/folders to any workspace location
  • New: Duplicate Folder — recursively duplicate entire folders
  • Recent destination tracking for Move/Copy File To

2.0.0

  • Added Duplicate File command
  • Added Copy File Content command

1.0.0

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