Your AI pair programmer
Get Code Suggestions in real-time, right in your IDE
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.
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.
Start a free trial with 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.
Create unit tests
An important use case of GitHub Copilot is to take some of the drudgery out of writing unit tests. Below, we already have an implementation of a function that computes the common prefix of two lists, and we want to test that. To do so, we import the unit test package, and then we start writing a test function to let Copilot generate the asserts which we accept just by hitting the Tab key.
Create a SQL query
What’s cooler than generating code in Go? Generating Go with embedded 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 Go, converting the result to a Go class as you would have done yourself:
Start a free trial with GitHub Copilot
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 Java, PHP, Python, JavaScript, Ruby, Go, C#, or C++. 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.
FAQ
Got a question? We probably have the answers. Check our FAQ.
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
Note about Copilot Chat Technical Preview
By using Copilot Chat you agree to GitHub Copilot chat preview terms. Review the transparency note to understand about usage, limitations and ways to improve Copilot Chat during the technical preview.
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.