Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Copy For AINew to Visual Studio Code? Get it now.
Copy For AI

Copy For AI

Codama Software

|
87 installs
| (1) | Free
Get files context quickly for usage with LLMs
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

📋 Copy For AI - VS Code Extension

Welcome to Copy For AI! 🚀 This Visual Studio Code extension lets you seamlessly copy content from your files to your clipboard, formatted and ready for AI interactions. Perfect for quickly sharing context with Large Language Models (LLMs) or collaborative tools. 🤖✨


🆕 New - Smart Selection Copy

Now you can copy only the parts you need! Select portions of code from any number of files, and the extension will copy just those selections with their line numbers. If a file has no selection, it'll copy the entire file - giving you the perfect mix of flexibility and convenience.


🌟 Features

  • 🗂️ Copy All Open Files: Automatically gathers content from every open file in your workspace
  • 📄 Copy Current File: Quickly copy just the content of your active file
  • ✨ Smart Selection Copy: Copy selected portions from all open files, or entire content if no selection
  • 📝 File Information: Includes relative file paths and line numbers for better context
  • 🔗 Clipboard Ready: Formats the content and copies it directly to your clipboard
  • ⚡ One-Click Simplicity: Multiple copy options available through simple commands

🚀 How to Use

The extension provides three main commands:

  1. Copy All Open Files

    • Command: Copy For AI: Copy open files content to ai
    • Use when you want to share the content of all open files
  2. Copy Current File

    • Command: Copy For AI: Copy current tab content to ai
    • Perfect for when you only need to share the active file
  3. Copy Selections

    • Command: Copy For AI: Copy selections from all opened tabs
    • Copies selected portions from all open files
    • If no selection in a file, copies its entire content
    • Includes line numbers for selections

To use any command:

  • Open Command Palette: Ctrl+Shift+P (Windows/Linux) or Cmd+Shift+P (Mac)
  • Type "Copy For AI" to see all available commands
  • Select the desired command

🔧 Installation

  1. Download the extension from the VS Code Marketplace
  2. Open Visual Studio Code
  3. Go to the Extensions view (Ctrl+Shift+X or Cmd+Shift+X)
  4. Search for Copy For AI and click Install

💡 Example Output

Copying All Files

- `src/index.js`:
console.log('Hello, world!');


- `src/styles.css`:
body {
  background-color: #fff;
}

Copying Selections

This also works for multiple selections in a file, and for multiple files!


- `src/index.js (total lines: 100)`:

line 5: function hello() {
console.log('Hello!');
}
....
line 20: const config = {
debug: true
};

📌 Requirements

  • Visual Studio Code version ^1.95.0
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft