Copy files and folders with project structure for AI assistants.
ext install leonkohli.copy4ai
1056+
Installs
10+
Configuration Options
3
Output Formats
100%
Free Forever
Copy4AI makes it easy to share your code with AI assistants while keeping full control over what gets shared.
Copy files, folders, or selections along with your project structure to provide complete context.
Automatically ignores dot files like .env and .git for security and respects .gitignore rules.
Include clear visualization of your project structure with configurable depth.
Choose from plaintext, markdown, or XML formats to best suit your use case.
Respect .gitignore rules to avoid sharing unwanted files with AI assistants.
Count tokens and estimate costs for various LLM models before sharing your code.
Copy4AI is designed to bridge the gap between your codebase and AI assistants, providing the perfect context for accurate and helpful responses.
AI models work best when they understand the full context. Copy4AI ensures your AI assistant sees the complete picture.
Sensitive information stays private. Copy4AI automatically filters out confidential files like .env and respects .gitignore.
Token counting and formatting options ensure you get the most out of your AI model without hitting limits.
Get started in seconds with these simple steps
Select one or multiple files or folders in the VS Code Explorer that you want to share.
Right-click and select 'Copy to Clipboard (Copy4AI)' from the context menu.
Paste the copied content into ChatGPT, Claude, or your preferred LLM interface.
Here's what people are saying about Copy4AI
This extension has been a game-changer for my workflow with AI assistants. Being able to share my code with full context makes AI responses much more accurate.
Alex Chen
Senior Developer
Copy4AI saves me so much time. No more manually copying files one by one to provide context to ChatGPT.
Sarah Martinez
Full Stack Engineer
The token estimation feature helps me stay within limits when sharing with AI. Clean, useful, and exactly what I needed.
Michael Wong
AI Engineer
Configure Copy4AI to fit your specific needs
Setting | Description | Default |
---|---|---|
ignoreGitIgnore | Respect .gitignore rules when generating output | true |
maxDepth | Maximum depth of the project tree | 5 |
outputFormat | Output format (plaintext, markdown, xml) | plaintext |
maxFileSize | Maximum file size to include (bytes) | 1MB |
compressCode | Remove extra whitespace and empty lines | false |
true
Respect .gitignore rules when generating output
5
Maximum depth of the project tree
plaintext
Output format (plaintext, markdown, xml)
1MB
Maximum file size to include (bytes)
false
Remove extra whitespace and empty lines
Install Copy4AI today and streamline your workflow when working with ChatGPT and other AI assistants.