Reading time: 3 minutes
One day ago, GitHub released its code assistant Copilot, capable of helping you program in any language. It’s important to note that this Artificial Intelligence (AI) is not capable of programming on its own, but it can assist us in avoiding web searches while programming.
It is available for €10/month or €100/year for developers who want to subscribe. And it’s free if you’re a student (GitHub Students) or an Open Source project contributor on GitHub. It also offers a 60-day trial period.
The first thing we need to do is download Visual Studio Code from this link, where we can use Copilot in our projects.
Copilot is compatible with Java, JavaScript, Python, TypeScript, Ruby, Go, and more…
Furthermore, it works in English, Spanish, and other languages…
Once Visual Studio Code is installed, we search for the GitHub Copilot extension from this link and install it.
We click on Install and allow the installation.
We click on Open link, and VSCode will open with the extension installed.
Once installed, the extension will appear at the bottom, deactivated. We just need to log in with our GitHub Student or regular account if we subscribe or use the 60-day free trial from here.
To start the trial process, we click on Start my free trial and follow the instructions.
Once activated, the following icon will appear at the bottom right of our VSCode:
Now, let’s start writing code with the help of this AI.
We open a project, for example, in JavaScript, and write the following:
//Ajax login
Then, the AI suggests what we can do in gray.
If we want to use the suggestion, we press the tab key.
And we see how the AI starts writing the code, which we have to review because it will provide us with a structure.
If we want to continue writing, we keep pressing the tab key.
And as we can see, it has completed a login structure for us.
(no incluyas el Tiempo de lectura).