Install, configure, and get the most out of GitHub Copilot in VS Code, JetBrains, and the terminal. Includes tips most developers miss.
GitHub Copilot is the most widely used AI coding tool in 2026. This guide gets you from zero to productive in 15 minutes.
| Plan | Price | Best For |
|---|---|---|
| Individual | $10/mo or $100/yr | Solo developers |
| Business | $19/user/mo | Teams |
| Enterprise | $39/user/mo | Large orgs (custom models, audit logs) |
Free tier: GitHub offers free Copilot to verified students and maintainers of popular open-source projects.
Sign up at github.com/features/copilot.
Ctrl+Shift+X to open ExtensionsYou'll see the Copilot icon in the status bar when it's active.
# Requires GitHub CLI
brew install gh # macOS
# or: winget install GitHub.cli # Windows
# Install Copilot extension
gh extension install github/gh-copilot
# Authenticate
gh auth login
# Use it
gh copilot suggest "undo last git commit"
gh copilot explain "$(cat complex-script.sh)"
As you type, Copilot suggests completions in gray text. Press Tab to accept.
Tip: Write a descriptive comment before the function to get better completions:
// Fetch user by email, return null if not found, throw on DB error
async function getUserByEmail(email: string) {
// Copilot will generate this entire function
}
Open the Copilot Chat panel (Ctrl+Alt+I) for conversational help:
Press Ctrl+I (Cmd+I on Mac) to open inline chat directly on any selected code.
Use multi-line comments as specs:
/*
Create a custom React hook for debounced search.
- Accept value (string) and delay (number, default 300ms)
- Return debounced value
- Cancel pending debounce on unmount
*/
function useDebounce<T>(value: T, delay: number = 300): T {
// Copilot generates the implementation
}
Use the chat for context-aware help: Select a function, then open chat and ask "How would you test this?"
Tab cycling: When Copilot offers multiple suggestions, use Alt+] and Alt+[ to cycle through them.
By default, your code snippets are used for model improvement. Disable this:
Settings → GitHub Copilot → Check "Allow GitHub to use my code snippets"
For enterprise teams, use Copilot Business or Enterprise which includes:
Copilot shows wrong language suggestions: Make sure the file has the correct extension and language mode (shown in VS Code status bar).
Suggestions are slow or missing: Check internet connection and that you're on a supported plan. Free GitHub accounts with expired trials won't show suggestions.
Copilot Chat not answering about my files: Ensure your workspace is open (not just individual files). Open the folder, not just the file.