Improving GitHub Copilot Completions in Visual Studio for C# Developers

Improving GitHub Copilot Completions in Visual Studio for C# Developers
GitHub Copilot code completions provide autocomplete suggestions inline as you code. In Visual Studio 2022 17.11, additional relevant C# context, such as available types and methods, is now included in Copilot completions. This improvement ensures more accurate and relevant suggestions by considering semantically relevant files even if they are not open in your editor.
Before: Semantically relevant files are not considered as context for GitHub Copilot Completions
Previously, GitHub Copilot might have suggested incorrect method names when calling methods defined in other files. This resulted in inaccurate autocomplete suggestions for C# developers.
After: Semantically relevant files are considered as context for GitHub Copilot Completions
With the latest update, GitHub Copilot now considers semantically relevant files for additional context, leading to more accurate and relevant autocomplete suggestions. This improvement reduces inaccuracies and enhances the overall coding experience for C# developers.
Let us know what you think!
We hope this enhancement improves your experience with GitHub Copilot in Visual Studio. Your feedback is valuable in helping us enhance the Copilot experience for C# developers. Similar updates will be coming to VS Code soon, and we would love to hear about your experiences with this improvement. Provide your feedback on GitHub Copilot by participating in a GitHub discussion.