User Tools

Site Tools


copilot

This is an old revision of the document!


GitHub Copilot Home

1. Application

1.1. Add tsinghua mail address to your github account

Email settings

The Primary email address can be random, whereas the one used to apply for copilot (education benefit actually) shall be example@mail.tsinghua.edu.cn

1.2. Apply for education benefit

GitHub Education

Submit some necessary information.

The most important part is to take a photo of your campus card with your computer, to prove that you are a student or a teacher.

After three or four days, you will get the email indicating successful application. DO NOT jump to the next step, until you receive the email.

1.3. Apply for github copilot

Copilot

Just click some buttons.

2. Application for GitHub Copilot (Polished by ChatGPT3.5)

2.1. Add Tsinghua Mail Address to Your GitHub Account

Navigate to Email Settings in your GitHub account.

  • The primary email address can be of your choice.
  • The email used for Copilot application (education benefit) should be example@mail.tsinghua.edu.cn.

2.2. Apply for Education Benefit

Visit GitHub Education and provide the required information.

  • Important: Take a photo of your campus card with your computer to prove your student or teacher status.
  • Allow three to four days for processing.
  • Wait for the confirmation email before proceeding to the next step.

2.3. Apply for GitHub Copilot

Access the Copilot settings here.

  • Follow the on-screen instructions and click the necessary buttons.

3. Installation

Install extension Github Copilot in vscode and login your github account. (The extension Github Copilot Chat will be installed automatically.)

4. Usage

4.1. Some hotkeys

4.1.1. To accept / reject suggestions

Tab to accept Esc to reject

4.1.2. Seeing alternative suggestions

Alt + ] to see next suggestion. Alt + [ to see previous suggestion.

4.1.3. Seeing multiple suggestions

Ctrl + Enter to open a new tab with multiple options.

4.2. Generating suggestions from comments

Write the comments, then it will suggest an implementation of the function.

4.3. Enabling or disabling

Click the status icon in the bottom panel.

copilot.1710392714.txt.gz · Last modified: 2024/03/14 05:05 by 127.0.0.1