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

developers
(Image credit: Huawei)

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

The system, called GitHub Copilot, has been trained on billions of lines of code available in public repositories, including those on GitHub. Microsoft and GitHub developed Copilot together with OpenAI, an AI research startup that Microsoft has been investing 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,” wrote Nat 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

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’s Visual Studio Code, though it might support other IDEs later on. 

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

TOPICS
Mayank Sharma

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

Read more
Gemini Code Assist
What is Gemini Code Assist? Everything we know about the AI coding tool
A laptop screen showing a ChatGPT coding panel
The ChatGPT Mac app just got a massive coding upgrade – and it’s coming to Windows soon
Copilot on a laptop
What is Copilot: Microsoft’s AI chatbot isn't just for Windows users
AI Education
AI in 2025: Moving beyond code generation to intelligent development platforms
Microsoft Paint Copilot
Microsoft Paint brushes up on AI
AI writer
Coding AI tells developer to write it himself
Latest in Software & Services
woman listening to computer
AWS vs Azure: choosing the right platform to maximize your company's investment
A person at a desktop computer working on spreadsheet tables.
Trello vs Jira: which project management solution is best for you?
Autonomous finance
Quickbooks vs Quicken: what are the main strengths and weaknesses for your business
finance
Quickbooks vs Xero: which is the best for your business?
Group of people meeting
Zoom vs Google Meet: which is the best video conferencing tool for your business?
Fingers typing on a computer keyboard.
Microsoft 365 Personal vs Microsoft 365 Family: are there any real differences?
Latest in News
Google Pixel 9a
Google just launched the Pixel 9a – and I reckon it embarrasses the iPhone 16e
Adobe Firefly
Adobe launches game-changing GenAI tools for video editing
Adobe AI agents
Adobe launches 10 new AI agents to automate key marketing workflows
Windows 10
Microsoft gets into the spam game by again emailing Windows 10 users to prod them to upgrade to Windows 11 – is the nagging going too far now?
Jia-Xin "Jay" Zhong, a postdoctoral scholar of acoustics at Penn State, used a dummy with microphones in its ears to measure the presence or absence of sound along an ultrasonic trajectory.
A wild new sound tech promises to create 'personal' sound only you can hear, but without headphones
An Android phone being held in the hand
These malicious Android apps were installed over 60 million times - here's how to stay safe