In Github Copilot Chat - How to include all opened files as a context reference #155219
Replies: 10 comments 12 replies
-
|
Hi there, thanks for the feedback. Just to double check - where are you using Copilot Chat? In github.com, VS Code, VS, or somewhere else? |
Beta Was this translation helpful? Give feedback.
-
|
I have the same issue. It would be really helpful if there was a command to add all the open editors to the context. |
Beta Was this translation helpful? Give feedback.
-
|
Thank you all for the feedback! It is actually possible today to add all open editors to the context. You can use and then select |
Beta Was this translation helpful? Give feedback.
This comment was marked as off-topic.
This comment was marked as off-topic.
-
|
This is such a common use case that it should be way quicker/easier to do this - definitely from the keyboard. Typing |
Beta Was this translation helpful? Give feedback.
-
|
Can we have entire codebase as context automatically without adding them one by one, which is super annoying? |
Beta Was this translation helpful? Give feedback.
-
|
Will not help VS Code users but I've just published an extension for VS 2022 that copies selected files in the solution explorer to the clipboard as references that can be pasted into the chat. Copy CoPilot References ExtensionThis 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
Features
|
Beta Was this translation helpful? Give feedback.
-
|
💬 Your Product Feedback Has Been Submitted 🎉 Thank you for taking the time to share your insights with us! Your feedback is invaluable as we build a better GitHub experience for all our users. Here's what you can expect moving forward ⏩
Where to look to see what's shipping 👀
What you can do in the meantime 💻
As a member of the GitHub community, your participation is essential. While we can't promise that every suggestion will be implemented, we want to emphasize that your feedback is instrumental in guiding our decisions and priorities. Thank you once again for your contribution to making GitHub even better! We're grateful for your ongoing support and collaboration in shaping the future of our platform. ⭐ |
Beta Was this translation helpful? Give feedback.
-
|
I'm glad this is getting attention. I think the https://github.com/orgs/community/discussions/155219#discussioncomment-13805534 |
Beta Was this translation helpful? Give feedback.
-
note sure if this is solution in chat settings but i will continue like this. Later might remove it, please do remind
|
Beta Was this translation helpful? Give feedback.





Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
By default only one my opened file is attached as a context. I know there is a way to include files clicking button "Attach Context" a manually selecting files in a list (opened files appear). But this have to be done basically for each prompt. I wonder if there is some better way to include all opened files, probably via some # command (#Editor does not work) or even better via some setting.
Thank you.
Beta Was this translation helpful? Give feedback.
All reactions