Introduction
Copiloto de GitHub is an AI pair programmer. You can use Copiloto de GitHub to get suggestions for whole lines or entire functions right inside your editor.
This guide will show you how to sign up for Copiloto de GitHub, install the Copiloto de GitHub extension in Visual Studio Code, and get your first suggestion. For more information on Copiloto de GitHub, see "About Copiloto de GitHub." For more in-depth information on how to use Copiloto de GitHub in a variety of environments, see "Getting Started."
Prerequisites
- Copiloto de GitHub is free to use for verified students and open source maintainers.
- If you are not a student or open source maintainer, you can try Copiloto de GitHub for free with a one-time 60 day trial. After the free trial, you will need a paid subscription for continued use. You must provide billing information in order to start a free trial. For more information, see "About billing for Copiloto de GitHub."
- To use Copiloto de GitHub in Visual Studio Code, you must have Visual Studio Code installed. For more information, see the Visual Studio Code documentation.
Signing up for Copiloto de GitHub
Before you can start using Copiloto de GitHub, you will need to set up a free trial or subscription.
-
En la esquina superior derecha de cualquier página, da clic en tu foto de perfil y después da clic en Configuración.

-
In the "Code, planning, and automation" section of the sidebar, click GitHub Copilot.
-
On the Copiloto de GitHub settings page, click Start your free trial.
-
Choose whether you want to pay monthly or yearly, and click Continue to get access to Copilot.
- If your personal account meets the criteria for a free Copiloto de GitHub subscription instead of a trial, you will automatically be taken to step 6.

- If your personal account meets the criteria for a free Copiloto de GitHub subscription instead of a trial, you will automatically be taken to step 6.
-
Confirm your payment details.
-
Select your preferences, then click Save and get started.
Installing the Copiloto de GitHub extension for Visual Studio Code
To use Copiloto de GitHub, you must first install the Visual Studio Code extension.
- In the Visual Studio Code Marketplace, go to the Copiloto de GitHub extension page and click Install.

- A popup will appear, asking to open Visual Studio Code. Click Open Visual Studio Code.
- In the "Extension: Copiloto de GitHub" tab in Visual Studio Code, click Install.

- If you have not previously authorized Visual Studio Code in your GitHub account, you will be prompted to sign in to GitHub in Visual Studio Code.
- If you have previously authorized Visual Studio Code in your GitHub account, Copiloto de GitHub will be automatically authorized.

- If you have previously authorized Visual Studio Code in your GitHub account, Copiloto de GitHub will be automatically authorized.
- In your browser, GitHub will request the necessary permissions for Copiloto de GitHub. To approve these permissions, click Authorize Visual Studio Code.
- In Visual Studio Code, in the "Visual Studio Code" dialogue box, to confirm the authentication, click Open.
Getting your first suggestion
Copiloto de GitHub provides suggestions for numerous languages and a wide variety of frameworks, but works especially well for Python, JavaScript, TypeScript, Ruby, Go, C# and C++. The following samples are in JavaScript, but other languages will work similarly.
-
Open Visual Studio Code.
-
In Visual Studio Code, create a new JavaScript (*.js) file.
-
In the JavaScript file, type the following function header.
JavaScript function calculateDaysBetweenDates(begin, end) {Copiloto de GitHub will automatically suggest an entire function body in grayed text, as shown below. The exact suggestion may vary.

-
To accept the suggestion, press Tab.
Next Steps
You successfully installed Copiloto de GitHub and received your first suggestion, but that's just the beginning! Here are some helpful resources for taking your next steps with Copiloto de GitHub.
- Getting Started: You've learned how to get your first suggestion in Visual Studio Code. These guides show you how to set up and navigate the various functions of Copiloto de GitHub across all of the supported environments.
- Copiloto de GitHub: See practical examples of how Copiloto de GitHub can help you work.
- Configuring Copiloto de GitHub: These guides provide details on how to configure Copiloto de GitHub to your personal preferences.