GitHub Copilot is a generative AI pair programmer. As you code, context including open files in the IDE, comments and code are sent to GitHub Copilot. Suggestions are then returned based on what it sees and what it knows for the next line or lines of code you're most likely looking for. To do so an extension is needed for your IDE.
Let's start this workshop by launching the project using GitHub Codespaces, a cloud-based container for development, and installing the extension.
To start creating code you'll of course need to get the code. This repository is setup as a template with a devcontainer already defined. Let's create an instance of the repository in the appropriate organization or individual account, and start the codespace.
- Navigate to the root of the repository on GitHub.
- Select Use this template > Create a new repository.
- Enter the appropriate information to configure the name and location of the repository. If a specific organization has been defined for your event, use that as the owner. (If you're unsure, ask a mentor).
- Select Create repository to create the repository.
- Once the repository is created, open it in GitHub Codespaces by selecting Code > Codespaces > Create a codespace on main (indicated by the +).
- The codespace may take a few minutes to setup the first time. It contains everything needed for the workshop, including Python/Anaconda and Node.js. It doesn't yet contain the extension for GitHub Copilot, which you'll install next.
GitHub Copilot has extensions for Visual Studio, Visual Studio Code, NeoVIM and the JetBrains suite of IDEs. Because the browser-based version of Visual Studio Code for Codespaces is, well, Visual Studio Code, you can install the extension!
- Open the command pallette by pressing F1.
- In the command pallette window, type Install extensions.
- Select Extensions: Install extensions.
- Type GitHub Copilot in the newly opened extensions window.
- Select Install on GitHub Copilot to install the extension.
- If prompted, reconnect to the codespace.
You've now got the development environment created and started! You're all set and ready to start writing code. So, let's begin working with the dataset.