This Visual Studio Code extension allows you to copy the content of a file or an entire directory to your clipboard or directly to copilot.
- Copy the content of a file to your clipboard, formatted for pasting into a chat window
- Integrates with the context menu in the Explorer view
Two commands are provided:
- Right-click on the file in the Explorer view
- Select "Copy Directory/File Content with Context" from the context menu
- The formatted content will be pasted into your chat window
You can also use the command palette to run the "Copy Directory/File Content with Context" command.
- Right-click on the directory in the Explorer view
- Select "Copy Directory Contents to Copilot/Clipboard" from the context menu
The formatted content of all files in the directory will be pasted into your chat window. It will follow the .gitignore rules for the directory, so you can exclude files from being copied by adding them to the .gitignore file.
The extension will also look for a .copilotignore file in the directory tree, and also use that to ignore files.
- Visual Studio Code 1.78.0 or higher
This extension does not contribute any settings.
None.
https://github.com/mikeedjones/copy-file-to-chat/issues
This extension is licensed under the MIT License.