Simplified Repository Navigation
Developers can now explore a repository's file structure directly within Copilot on the web. When asking Copilot to show a file, you'll see a file tree sidebar that displays the repository structure, making it easier to understand how files relate to each other across the broader codebase.
Automatic Chat References
As you navigate the file explorer, selected files are automatically added to your chat session as temporary references. This means you can seamlessly jump between files and ask Copilot questions with full context of the code you're viewing. If you want to keep certain files as permanent references, you can click the reference token or double-click the file preview tab to lock them in place.
Improved Context Awareness
With this deeper view into the repository structure, developers can better understand file relationships and dependencies. This makes it significantly easier to ask more targeted questions and get more relevant answers from Copilot, rather than having to manually copy-paste code snippets or provide context manually.
Availability
This feature is now available in public preview. You can test it out and provide feedback to the GitHub Community discussions.