Skip to content

GitHub Copilot — AI Coding Assistant

GitHub Copilot is the AI coding assistant built by GitHub (owned by Microsoft), powered by OpenAI models and trained on billions of lines of open-source code. It is the most widely used AI coding tool in the world, available as an extension for VS Code, JetBrains IDEs, Vim, Neovim, Visual Studio, and the GitHub CLI.

ProductDescription
Copilot in IDEReal-time autocomplete and chat in your editor
Copilot ChatConversational AI assistant inside VS Code / JetBrains
Copilot CLIAI in your terminal — explains commands, suggests fixes
Copilot in GitHub.comSummarize PRs, explain code, generate fixes in the browser
Copilot WorkspaceCloud-based agentic development environment
Copilot Agent ModeAutonomous multi-step coding tasks in VS Code
Copilot ExtensionsThird-party integrations (Datadog, Sentry, Docker, etc.)

The original Copilot feature — as you type, Copilot suggests entire functions, classes, or blocks based on:

  • Your current file context
  • Comments and docstrings
  • The file name and surrounding code
  • Patterns from billions of similar code snippets

Press Tab to accept, Esc to reject, or Alt+] to cycle through suggestions.

Chat about code inside your IDE:

@workspace — reference your entire open project
@file — reference a specific file
#selection — reference highlighted code
#terminal — reference terminal output

Common prompts:

  • “Explain this function”
  • “What tests should I write for this?”
  • “Fix the bug in #selection”
  • “Refactor @file to use async/await”

Copilot’s Agent Mode in VS Code allows multi-step autonomous tasks:

  1. Describe a feature or fix
  2. Copilot reads relevant files
  3. Makes edits across multiple files
  4. Runs terminal commands (tests, build)
  5. Retries on errors
  6. Shows a full diff to approve
Terminal window
# Install
gh extension install github/gh-copilot
# Explain a command
gh copilot explain "git rebase -i HEAD~3"
# Suggest a command
gh copilot suggest "list all S3 buckets sorted by size"

A browser-based environment where you describe a task and Copilot:

  1. Generates a plan (specification)
  2. Edits code in a cloud-based editor
  3. Lets you run the project and iterate
  4. Opens a PR on GitHub

GitHub Copilot now lets you choose your model:

ModelProviderBest For
GPT-4oOpenAIFast, general coding
o3-mini / o4-miniOpenAIReasoning, complex problems
Claude 3.7 SonnetAnthropicLong context, code quality
Gemini 2.0 FlashGoogleSpeed, Google ecosystem
FeatureGitHub CopilotCursorClaude Code
Primary interfaceExtension in any IDEDedicated IDE (VS Code fork)Terminal
AutocompleteYes (industry-leading training)YesN/A
Multi-file agentAgent Mode (VS Code)ComposerYes
Model choiceGPT-4o, Claude, Gemini, o3Claude, GPT-4o, GeminiClaude only
Works in JetBrainsYesNoVia terminal
Works in Vim/NeovimYesNoVia terminal
GitHub integrationNativeVia git CLIVia git CLI
Price$10–$19/month$20/monthClaude Pro $20/month
PlanPriceFeatures
Individual$10/monthAutocomplete, chat, CLI, 300 requests/month
Business$19/user/monthTeam management, audit logs, IP protection
Enterprise$39/user/monthFine-tuned model on your codebase, custom policies

GitHub Copilot is free for students, open-source maintainers, and verified teachers.

  • No public code filter — Copilot can optionally filter suggestions that match public code verbatim
  • Organization policies — Admins can restrict which repos can use Copilot
  • Enterprise data boundary — Enterprise plans ensure prompts are not used for training