This Visual Studio extension simplifies referencing files in GitHub Copilot Chat by copying their relative paths to the clipboard, formatted for immediate use.
How to Use
In the Solution Explorer, select one or more files.
Right-click the selected file(s) to open the context menu.
Click on "Copy CoPilot references".
The formatted references (e.g., #file:'YourProject/YourFile.cs') are now on your clipboard.
Paste the text directly into the GitHub Copilot Chat window.
Features
Single & Multi-file Selection: Copy references for one or multiple files at once.
Correct Formatting: Automatically formats the paths with the #file:'...' syntax required by Copilot Chat.
Relative Paths: Generates paths relative to the solution directory for cleaner references.
Easy Access: Integrates directly into the Solution Explorer item context menu for a seamless workflow.