Skip to content
| Marketplace
Sign in
Visual Studio>Tools>GitHub Copilot Completions
GitHub Copilot Completions

GitHub Copilot Completions

GitHub

github.com
|
1,155,503 installs
| (200) | Free Trial
GitHub Copilot Completions is an AI pair programmer that helps you write code faster and with less work. For Visual Studio 17.10 or higher, GitHub Copilot (Chat and Completions) is built-in, it need n
Download

Your AI pair programmer

For Visual Studio 17.10 or higher, GitHub Copilot (Chat and Completions) is built-in, it need not be installed as an extension. This extension Copilot Completions is only compatible with Visual Studio versions 17.8-17.9.

Get Code Suggestions in real-time, right in your IDE

Copilot suggests creating a MSTest that checks for the proper name given a valid item Id

What’s GitHub Copilot

GitHub Copilot provides autocomplete-style suggestions from an AI pair programmer as you code. You can receive suggestions from GitHub Copilot either by starting to write the code you want to use, or by writing a natural language comment describing what you want the code to do.

Get started with GitHub Copilot

Privacy

Your code is yours. We follow responsible practices in accordance with our Privacy Statement to ensure that your code snippets will not be used as suggested code for other users of GitHub Copilot.

What can you do with GitHub Copilot?

Convert comments to code

GitHub Copilot uses a special version of GPT-3 that has been trained on a large body of public source code. It is as good at writing natural language as it is at writing code, so in fact it can complete your comments for you. In the example below, we first let it complete our explanation, and then, line by line, we tab through the code that does what we just said in English.

Given a comment asking for a key from environment variables, Copilot suggests a try-catch block in C#

Create unit tests

An important use case of GitHub Copilot is to take some of the drudgery out of writing unit tests. We are working with an ASP.NET Core API that returns information about an item, and we want to test that. To do so, we start writing a test function to let Copilot generate the asserts which we accept just by hitting the Tab key.

Copilot suggests creating a MSTest that checks for the proper name given a valid item Id

Create a SQL query

What’s cooler than generating code in C#? Generating C# code based on SQL! To make GitHub Copilot do that, just show it the schema as CREATE TABLE statements. And then, it nicely writes a query embedded in C#, converting the result to a C# class using ASP.NET Core and Entity Framework Core as you would have done yourself:

Copilot suggests C# function that returns list of items in SQL database that have a specific priority value

GitHub Copilot for Business gives organizations the power of AI.

  • Millions of developers have already used GitHub Copilot to build software faster, stay in the flow longer, and solve problems in new ways—all right from their editor of choice.
  • Simple license management. Administrators can enable GitHub Copilot for their teams and select which organizations, teams, and developers receive licenses.
  • Organization-wide policy management. You can easily set policy controls to enforce user settings for public code matching on behalf of your organization.
  • Your code is safe with us. With Copilot for Business, we won’t retain code snippets, store or share your code regardless if the data is from public repositories, private repositories, non-GitHub repositories, or local files.

The numbers speak for themselves

Research has found GitHub Copilot helps developers code faster, focus on solving bigger problems, stay in the flow longer, and feel more fulfilled with their work.

  • 74% of developers are able to focus on more satisfying work
  • 88% feel more productive
  • 96% of developers are faster with repetitive tasks

To learn more, visit https://github.com/features/copilot

Powered by OpenAI

It is powered by OpenAI Codex to work in real time, right from your editor. GitHub Copilot improves developer productivity and happiness by reducing disruptions, improving flow and increasing the amount of time a developer spends doing satisfying work. Unlike other code assistants, GitHub Copilot offers suggestions from a model that OpenAI built from billions of lines of open-source code.

Supported languages, frameworks, and IDEs

GitHub Copilot works on any language, including C#, C++, Razor, JavaScript, PHP or Python. Because it’s been trained on languages in public repositories, it works for most popular languages, libraries and frameworks. It’s also integrated into your editor, and fast enough to use as you type.

Requirements

GitHub Copilot requires Visual Studio 2022 17.5.5 or newer. For Visual Studio 2022 version 17.4.4 to 17.5.4, use extension version 1.84.0.1.

GitHub Copilot requires a subscription. It is free for verified students and maintainers of popular open source projects on GitHub.

FAQ

Github Copilot is subject to GitHub Copilot Product Specific Terms.

Got a question? We probably have the answers. Check our FAQ.

Looking for help with getting started with Copilot in Visual Studio 2022? Check our docs.

Trusted by Developers Everyday

  • "This is the single most mind-blowing application of machine learning I’ve ever seen." - Mike Krieger // Co-founder, Instagram
  • "GitHub Copilot works shockingly well. I will never develop software without it again." - Lars Gyrup Brink Nielsen
  • "I was stunned when I started writing Clojure with GitHub Copilot and it filled an idiomatic namespace require, just like I was going to write it." - Gunnika Batra // Senior Analyst
  • "Trying to code in an unfamiliar language by googling everything is like navigating a foreign country with just a phrasebook. Using GitHub Copilot is like hiring an interpreter." - Harri Edwards // Open AI

Troubleshooting

We’d love to get your help in making GitHub Copilot better! If you have feedback or encounter any problems, please reach out on our Feedback forum.

Looking for help with getting started with Copilot in Visual Studio 2022? Check our docs.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft