Skip to content
Copy4AI

Copy code in one go.

Select files in VS Code. Copy their contents and project tree together, then paste into your AI chat.

Install for VS Code

Cursor or VSCodium? Install via Open VSX

Select. Copy. Back to the conversation.

  1. Pick your files

    Select files or folders.

  2. Copy once

    Right-click. Copy to Clipboard (Copy4AI).

  3. Paste anywhere

    Into any AI tool.

Less work between questions.

Copy changes, skip unwanted files and reuse your last selection.

Copy just the changes.

Copy selected Git diffs instead of whole files.

Choose your format.

# Project Structure
```
src/
├── utils
│ └── math.ts
└── index.ts
```

Markdown, XML or plain text.

Estimate tokens.

Optional token counts, calculated offline.

Leave files out.

Skip dot files, root .gitignore matches and your own exclusions.

Keep the tree.

Include the project tree, or copy it on its own.

Copy it again.

Reuse your selection. Copy the latest saved contents.

Your code. Your clipboard.

Copy4AI puts the copied text on your clipboard. You choose what to paste, and where.

No account. No API key. No subscription.

Explore the source on GitHub
Network requests
none
Telemetry
none
Token count
on your machine

Free to use.

The full extension, without a paid tier.

Open source.

Read the code. Report an issue. Make it better.

A few things to know.

More details in the docs.

Read the documentation

No. Install the extension, select your files and copy. Copy4AI works without an account or API key.

Try it on your next question.

Free and open source. No account or API key.

Install for VS Code

Cursor or VSCodium? Install via Open VSX