Quick LLM Copy

Simple VSCode extension that allows you to copy code files with their relative paths in a format suitable for LLM conversations.
Features
- Adds "Quick LLM Copy" option to the context menu in file explorer
- Adds "Quick LLM Copy (with Codebase)" option to include the project directory structure
- Supports copying multiple files at once
- Supports recursive copying of directories and their contents
- Includes relative file paths in the copied text
- Formats the output in a way that's easy to paste into LLM conversations
Usage
- Right-click on a file, directory, or select multiple files/directories in the VSCode explorer
- Choose one of the following options:
- Quick LLM Copy: Copies only the selected files/directories
- Quick LLM Copy (with Codebase): Copies the selected files/directories and includes the project directory structure
Provided code:
File: path/to/file1
// file1 contents
File: path/to/file2
// file2 contents
Provided code:
File: path/to/file1
// file1 contents
File: path/to/file2
// file2 contents
Codebase structure. You can ask for other files if needed:
Project structure:
├── src/
│ ├── components/
│ │ ├── Button.tsx
│ │ └── Input.tsx
│ └── utils/
│ └── helpers.ts
└── package.json
Requirements
- Visual Studio Code version 1.60.0 or higher
Extension Settings
This extension contributes the following settings:
quickLLMCopy.prefixText : The text that appears before the copied code content (default: "Provided code:")
quickLLMCopy.codebaseText : The text that appears before the codebase structure (default: "You can ask for other files from the codebase if needed:")
Known Issues
None at the moment.
Future Plans
- Add support for custom output formats
- Add the ability to shorten code by removing comments or anything else
- Add support for filtering files by extension
- Improve handling of large files
Release Notes
See CHANGELOG.md for detailed release notes.
| |