Paul Krill
Editor at Large

GitHub unveils AI coding assistant for Visual Studio Code

news
Jul 2, 20212 mins
Development ToolsGitHubVisual Studio Code

GitHub Copilot is an OpenAI-powered Visual Studio Code extension that can suggest lines of code or entire functions as you type.

artificially intelligent, robotic workers
Credit: Thinkstock

GitHub has launched a preview of GitHub Copilot, an AI-based coding assistant for Visual Studio Code that suggests lines of code or functions as you type.

Built in collaboration with OpenAI, GitHub Copilot draws context from the developerโ€™s code, suggesting lines or entire functions while helping to find alternative ways to solve problems, write tests, and explore new APIs without the need to search for answers on the Internet.

Introduced June 29, GitHub Copilot adapts to how the user writes code, helping complete work faster. Trained on billions of lines of public code, the tool is powered by OpenAI Codex, an AI system that is more capable than the GPT-3 (Generative Pretrained Transformer) language model in code generation, GitHub said.

GitHub Copilot can quickly produce boilerplate code and repetitive patterns, with developers able to feed examples to Copilot and have the tool generate the rest. Users also can import a unit test package and have Copilot suggest tests that match implementation code.

GitHub Copilot is available as a Visual Studio Code extension, working wherever Visual Studio Code works, on the developerโ€™s machine or in the cloud on GitHub Codespaces. With access currently limited to a small group of testers, persons interested in trying Copilot can sign up for the Copilot waiting list.

While GitHub Copilot works with a broad set of frameworks and languages, the technical preview works โ€œparticularly wellโ€ with JavaScript, Python, TypeScript, Ruby, and Go, GitHub said. GitHub cautioned that Copilot does not always write โ€œperfectโ€ code, and that sometimes the suggested code will not work. Code suggested by the tool should be tested, reviewed, and vetted, like any other code, GitHub said.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorldโ€™s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorldโ€™s audience of software developers and other information technology professionals. Paul has won a โ€œBest Technology News Coverageโ€ award from IDG.

More from this author