The system, called GitHub co-pilot, was trained on billions of lines of code available in public repositories, including those on GitHub. Microsoft and GitHub have co-piloted with. developed OpenAI, an AI research startup that was Microsoft invest since 2019.
“GitHub Copilot pulls context from the code you’re working on and suggests lines or functions. It helps you quickly find alternative ways to solve problems, write tests and explore new APIs without having to search the internet for answers. ” wrote Nat Friedman, GitHub CEO.
Friedman describes GitHub Copilot as an AI-based pair programmer. Pair programming is a popular collaborative programming technique where two developers work together to write and review code on the same screen.
More than autocomplete
Friendman explains that GitHub Copilot reviews the code you write and makes relevant suggestions as you type. You can go through, accept, edit, or reject the suggestions.
In addition, like any AI-based solution, Copilot learns over time. So as you write more code, Copilot can come up with more relevant suggestions based on your coding style.
GitHub Copilot launches today in Technical Preview for a limited number of testers for free. For now, developers can only do it in Microsofts Visual Studio Codealthough it might assist others IDEs later.