Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Copy File Path + ContentsNew to Visual Studio Code? Get it now.
Copy File Path + Contents

Copy File Path + Contents

Dictionary Labs

|
17 installs
| (0) | Free
Right-click an editor tab to copy the relative file path and full contents of one or more open files to your clipboard. Supports multi-file selection and untitled files.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copy File Path + Contents

A simple VS Code / Cursor extension that copies the relative file path and full contents of open files to your clipboard.

Usage

  1. Right-click on any editor tab
  2. Select "Copy File Path + Contents"

Context menu

  1. A multi-select picker appears with all open files — choose which ones to include
  2. Press Enter — the paths and contents are copied to your clipboard

Multi-select picker

Output Format

path/from/root/file1.ext
<file1 contents>

---

path/from/root/file2.ext
<file2 contents>

Features

  • Works with multiple files — pick from all open tabs
  • Supports untitled (unsaved) files
  • Uses relative paths from the workspace root
  • Single open file is copied immediately without showing the picker

Installation

Install from the VS Code Marketplace, or manually:

code --install-extension DictionaryLabs.copy-file-path-contents
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft