Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Copy Path with CodeNew to Visual Studio Code? Get it now.
Copy Path with Code

Copy Path with Code

khanhromvn

|
79 installs
| (1) | Free
Copy file path along with its content
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Copy Path with Code 📋✨

A powerful Visual Studio Code extension that revolutionizes how you copy and manage code snippets with their file paths. Perfect for developers who need to share code with context, create documentation, or organize related files efficiently.

VS Code Extension Version License

🌟 Features

🎯 Core Copying Capabilities

  • Smart Path + Content Copying - Copy file paths along with their content in one action
  • Selective Copying - Copy specific code selections with precise line numbers
  • Multi-file Support - Accumulate multiple files in clipboard with automatic deduplication
  • Error-Enhanced Copying - Special formatting for error messages with line context
  • Clipboard Detection - Automatically detect and parse files from clipboard content

📁 Advanced Folder Management

  • Code Folders - Organize related files into custom folders
  • Visual File Browser - Interactive tree view for adding/removing files from folders
  • Batch Operations - Open all files in a folder or copy their entire contents
  • Smart Organization - Workspace-aware folder organization

🔄 Clipboard Management

  • Temporary Storage - Save and restore clipboard contents
  • Clipboard Monitoring - Real-time detection of files copied to clipboard
  • Visual Queue - View and manage detected files in the Clipboard Files panel
  • File Previews - Quick preview of detected clipboard files

🔍 Search & Navigation

  • Advanced Search - Search files and folders with filtering options
  • Workspace/Global Views - Switch between workspace-specific and global folder views
  • File Operations - Full context menu support for file management

🚀 Quick Start

Installation

  1. Open Extensions in VS Code (Ctrl+Shift+X / Cmd+Shift+X)
  2. Search for "Copy Path with Code"
  3. Click Install
  4. Reload VS Code when prompted

Basic Usage

  1. Open any file in VS Code
  2. Click inside the editor to activate the text area
  3. Select text (optional) or keep cursor position for full file
  4. Press Ctrl+Alt+C (Win/Linux) or Cmd+Alt+C (Mac)
  5. Paste anywhere - get formatted output with path and content!

⌨️ Keyboard Shortcuts

Action Windows/Linux macOS
Copy Path and Content Ctrl+Alt+C Cmd+Alt+C
Copy with Error Formatting Ctrl+Alt+A Cmd+Alt+A
Clear Clipboard Ctrl+Alt+Z Cmd+Alt+Z
Add to Folder Ctrl+Alt+Shift+A Cmd+Alt+Shift+A
Remove from Folder Ctrl+Alt+D Cmd+Alt+D
Save to Temp Ctrl+Alt+Q Cmd+Alt+Q
Restore from Temp Ctrl+Alt+E Cmd+Alt+E

📁 Folder Management

Creating Code Folders

  1. Click the folder icon in the activity bar to open Code Folders view
  2. Click the + button to create a new folder
  3. Name your folder and choose to start empty or with open files

Managing Files

  • Add Files: Right-click folder → "Add File to Folder"
  • Remove Files: Right-click folder → "Remove File from Folder"
  • Batch Operations: Open all folder files or copy their contents

🔄 Clipboard Features

Temporary Storage

  • Save Current Clipboard: Ctrl+Alt+Q - Moves current clipboard to temp storage
  • Restore from Temp: Ctrl+Alt+E - Restores previously saved clipboard
  • Visual Indicator: Status bar shows temp file count

Clipboard Detection

  • Automatic Parsing: Detects files copied to clipboard
  • Visual Queue: View detected files in "Clipboard Files" panel
  • File Previews: Click any detected file to open a preview

🎨 Interface Overview

Activity Bar Components

  1. Code Folders View - Manage your code folders
  2. Clipboard Files Panel - View detected clipboard files

Status Bar Indicators

  • File Count: Current clipboard file count
  • Temp Storage: Files in temporary storage

📝 Release Notes

Version 1.0.0

  • Complete rewrite with enhanced architecture
  • Advanced folder management system
  • Clipboard detection and temporary storage
  • Improved search and filtering capabilities
  • Workspace-aware folder organization

🤝 Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

📄 License

This project is licensed under the MIT License - see the LICENSE file for details.


Happy Coding! 🎉

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