GitHub and OpenAI joined forces to introduce a new AI tool that has the ability to generate its own code. They aim to help users and developers write code more efficiently. It’s called Copilot and it can suggest lines of code and sometimes entire functions.
For this project, GitHub has partnered with OpenAI, which is a non-profit organization focused on artificial intelligence research founded by Elon Musk.
GitHub Copilot will generate its own code
According to the platform’s officials, Copilot will not be able to replace developers. It is a tool that should improve productivity and facilitate code learning. the platform plans to launch a commercial product based on Copilot. Currently, it works best with Python, JavaScript, TypeScript, Ruby and Go.
The model behind Copilot has been trained with billions of lines of code, many of them hosted and publicly available on GitHub itself. When you’re writing code, GitHub Copilot offers you suggestions as you write. You can accept or reject them. As you accept and reject suggestions, the tool will improve itself thanks to machine learning.
To find out what you’re currently coding, GitHub Copilot tries to analyze the meaning of a comment, the name of the function you’re writing, or the last few lines. If you’re getting started with a new language or have used codeless tools in the past, this software can be very useful. It could also replace many Stack Overflow queries.
GitHub Copilot integrates directly with Visual Studio Code. You can install it as an extension or use it in the cloud with GitHub Codespaces.