Function Calling is Now Enabled in GitHub Copilot

Have you ever been frustrated when Copilot doesn’t understand you? While it can’t read your mind, we’ve been working hard to make your coding experience smoother.

Previously, Copilot in Visual Studio could look at files in your repository, but you needed to specify the context of your code manually. We understand this wasn’t the most intuitive experience, so we’ve been working on a smarter way to infer information automatically.

Introducing Function Calling: A Smarter Copilot

Function Calling is here—a major update that changes how you interact with Copilot. Now, Copilot can automatically search for more relevant code or tools it needs to address your questions. This works with GPT-4o and Claude Sonnet.

You can now simply describe what you need in natural language, and Copilot can decide what of the information below is relevant:

  • Your current file
  • Open files or related files in your solution
  • Your whole codebase
  • debugger (locals, call stacks, etc.)
  • or Visual Studio itself

Web integration is also coming soon, allowing you to ask questions that span both local code and external data sources. (But for now you can use @GitHub.)

Add that’s not all we added….

Smarter Knowledge Retrieval

Even more transparency and control

While Function Calling is a significant improvement, it’s not perfect. To enhance transparency, Or try the Retry to generate a fresh response. You can also manually specify files, methods, classes, or entire solutions using # references in your prompts.

Help Shape the Future

Function Calling enables both enhanced context retrieval and greater workflow automation. Please update to the latest version of Visual Studio to access upcoming features. We also invite you to try Chat again and share your feedback—let us know what works, what doesn’t, and how we can improve your experience.

Happy coding!

Want to try this out?

Activate GitHub Copilot Free and unlock this AI feature, plus many more.

No trials. No credit cards. Just your GitHub account. Get Copilot Free

The post Function Calling is Now Enabled in GitHub Copilot appeared first on Visual Studio Blog.

Previous Article

Visual Studio Code CMake Tools Extension 1.20 Release: Introducing Built-In CMake Language Services

Next Article

.NET MAUI Performance Features in .NET 9

Write a Comment

Leave a Comment

Your email address will not be published. Required fields are marked *