A Visual Studio Code extension that allows you to copy both the relative file path and its content with a single keyboard shortcut.
Features
Copy file path and content to clipboard
Support for copying selected text portions with line numbers
Multiple file copying with automatic duplicate handling
Clear clipboard with a single shortcut
Uses keyboard shortcuts:
Ctrl+Alt+C (Windows/Linux) or Cmd+Alt+C (Mac) to copy
Ctrl+Alt+Z (Windows/Linux) or Cmd+Alt+Z (Mac) to clear clipboard
Works in any text editor within VS Code and VS Code-based IDEs
Important Note
⚠️ You must click inside the code area of the file (make the text editor active) before using the extension shortcuts. Simply selecting a file in the explorer panel is not sufficient.
Usage
Open any file in VS Code
Click inside the file's code area to make it active
Select text (optional) or copy entire file
Press Ctrl+Alt+C (Windows/Linux) or Cmd+Alt+C (Mac)
The file's path and content will be copied to your clipboard in the format: