AI-powered GitHub tool will pretty much write your code for you

Smart compose, but for programmers

When you purchase through links on our site, we may earn an affiliate commission.Here’s how it works.

GitHubis previewing a new tool that leverages artificial intelligence (AI) to make relevant suggestions as programmers write code.

The system, calledGitHub Copilot, has been trained on billions of lines of code available in public repositories, including those on GitHub.Microsoftand GitHub developed Copilot together withOpenAI, an AI research startup that Microsoft has beeninvesting in since 2019.

“GitHub Copilot draws context from the code you’re working on, suggesting whole lines or entire functions. It helps you quickly discover alternative ways to solve problems, write tests, and explore new APIs without having to tediously tailor a search for answers on the internet,”wroteNat Friedman,GitHub CEO.

Friedman describes GitHub Copilot as an AI-powered pair programmer. A popular collaborative programming technique, pair programming involves two developers working together to write and review code on the same screen.

More than autocomplete

More than autocomplete

Friendman explains that GitHub Copilot reviews the code you’re writing and makes relevant suggestions as you type. You can cycle through the suggestions, accept, edit, or reject them.

Furthermore, as with any AI-powered solution, Copilot learns over time. So as you write more code, Copilot will be able to make more relevant suggestions tuned to your coding style.

GitHub Copilot launches today in technical preview for a limited number of testers for free. For now, developers can only plug it into Microsoft’sVisual Studio Code, though it might support otherIDEslater on.

Are you a pro? Subscribe to our newsletter

Are you a pro? Subscribe to our newsletter

Sign up to the TechRadar Pro newsletter to get all the top news, opinion, features and guidance your business needs to succeed!

Also, while Copilot is designed to work with a whole gamut of languages and frameworks, the technical preview is particularly adept atPython, JavaScript, TypeScript, Ruby, and Go.

With almost two decades of writing and reporting on Linux, Mayank Sharma would like everyone to think he’sTechRadar Pro’sexpert on the topic. Of course, he’s just as interested in other computing topics, particularly cybersecurity, cloud, containers, and coding.

7 myths about email security everyone should stop believing

Best Usenet client of 2024

Alt + Tab trouble: Windows 11’s 24H2 update turns time-saving shortcut into ten-second headache