Skip to content

Setting up GitHub Co-Pilot for Students

To set up GitHub Co-Pilot, follow these steps:

  1. If you haven't done so already, create a GitHub account: Visit the GitHub website github.com.
  2. Follow the instructions on this GitHub page for applying to GitHub Global Campus as a student. This will give you access to GitHub Co-Pilot and other benefits.

Using GitHub Co-Pilot in VS Code

  1. Install the GitHub Co-Pilot extension: Open VS Code and go to the Extensions tab. Search for "GitHub Co-Pilot" and click on the "Install" button to install the extension.
  2. Sign in to your GitHub account: Click on the "Sign in to GitHub" button in the bottom left corner of the VS Code window and follow the instructions to sign in to your GitHub account.
  3. Start using GitHub Co-Pilot: Open a new file in VS Code and start typing. GitHub Co-Pilot will automatically suggest code snippets based on the context of your code.
  4. Chat with GitHub Co-Pilot: You can also chat with GitHub Co-Pilot by clicking the two speech bubbles icon on the left side of the VS Code window. This will open a chat window where you can ask questions and get answers from GitHub Co-Pilot. This can be useful to have Co-Pilot explain your code line by line, or answer general questions.

Hotkeys

You can also use the keyboard shortcut Ctrl+I on Windows or Command+I on Mac to in-line chat with Github Co-Pilot and get immediate suggestions for your code.