Is it possible to use copilot instructions from the git repo root instead of the opened folder? #155450
Replies: 5 comments 3 replies
|
💬 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. ⭐ |
|
Hi @stevebeauge, I understand your issue with GitHub Copilot instructions not being used when opening packages as a multi-root workspace. Unfortunately, GitHub Copilot currently does not support using the .github/copilot-instructions.md file in multi-root workspaces. Possible Workaround: Example: |
|
Thanks for your feedback and for using Copilot in VS Code! For any future feature requests or bugs on Copilot in VS Code specifically, it'd be a huge help if you could file them in https://github.com/microsoft/vscode-copilot-release/issues. I'd also recommend checking out our docs: https://code.visualstudio.com/docs/copilot/overview. |
|
you might try multiple .code-workspace files to include/exclude folders from github copilot |
|
I'm running into the same problem. I tried configuring the folder the code-workspace file is at as the .github folder and adding the instruction file there. But the agent can not find the instruction file. Worth monitoring these issues: |
Uh oh!
There was an error while loading. Please reload this page.
Select Topic Area
Product Feedback
Body
Hi,
I'm using github copilot in the context of a medium sized monorepo. Because of performance issues, I often only open the few packages I need to complete my task (the repo has 30 packages, but most of time only 3 or 4 packages are actually needed).
I set up an instruction file at the root of the repository (.github/copilot-instructions.md).
If I open the whole repo inside VS Code, the instructions are provided to copilot (can see the instructions in the references menu)
If I open wanted packages as a multi root workspace, the instructions are not used.
Is there a way to workaround this?
Thanks
All reactions