Coding

GitHub Copilot

GitHub's AI pair programmer that suggests code as you type and answers questions about your project.

  • Code editors
  • GitHub.com
  • Terminal
Screenshot of GitHub Copilot

What is GitHub Copilot?

GitHub Copilot suggests whole lines or blocks of code as you type, based on what you're working on. Its chat lets you ask questions, explain code, fix errors, and generate tests, and agent mode in your editor can make edits across several files, run commands, and fix what breaks.

Beyond the editor, you can assign a GitHub issue to the Copilot coding agent: it works in the cloud and opens a pull request for you to review. Copilot code review comments on pull requests, and Copilot CLI brings the same agent to your terminal. It works with VS Code, Visual Studio, JetBrains, and more, and there's a free plan to start.

Where you can use it

  • Code editors
    Extensions for VS Code, Visual Studio, JetBrains IDEs, and more.
    Available
  • GitHub.com
    Chat about repositories and pull requests on github.com.
    Available
  • Terminal
    A command-line tool for help in your terminal.
    Available

How different fields use GitHub Copilot

  • Students

    Free access and help while you learn.

    • Free Copilot Pro for verified students
    • Explanations of errors and code
    • Suggestions as you type
  • Developers

    AI help in the editor you already use.

    • Agent mode for multi-file changes
    • Tests and docs generated from code
    • Copilot CLI in the terminal
  • Teams on GitHub

    Hand off issues and speed up reviews.

    • Assign issues to the coding agent
    • Pull requests opened for review
    • Automatic code review comments

From setup to your first suggestion.

  1. Get access

    Sign in to GitHub and turn on Copilot; there's a free plan, and students can get Pro for free.

  2. Install the extension

    Add GitHub Copilot to your code editor and sign in with GitHub.

  3. Start typing

    Write code or a comment describing what you want, and accept suggestions with Tab.

  4. Ask in chat or agent mode

    Open Copilot Chat to explain code, or switch to agent mode to make a change across files.

  5. Review the code

    Read and test every change before you commit it, including pull requests from the coding agent.

Ready to code with Copilot?

Open GitHub Copilot and follow the steps above to get started.

Open GitHub Copilot →