Coding & development · GitHub
GitHub Copilot
Inline code suggestions and a chat assistant inside your editor and on GitHub.
Cost
Free tier · Pro $10/mo
What it is
GitHub Copilot is an AI pair programmer. It suggests code as you type in VS Code, JetBrains, Neovim and Visual Studio, and offers a chat panel for questions and edits. It also reviews pull requests and answers questions in github.com.
What it does
It completes lines and functions, writes tests, explains unfamiliar code, proposes fixes for errors, and can draft a pull request summary from a change.
Who should use it
Professional developers and students. Free access is available for verified students and open-source maintainers, which makes it a low-risk first AI coding tool.
Problems it solves
- Writing boilerplate and repetitive patterns
- Learning a new framework's idioms
- Getting a first version of a test file
- Understanding an error message
Most important features
- Inline completions as you type
- Copilot Chat in the editor
- Pull request summaries and review
- Multiple model choice
- Free tier for individuals
How much it costs
Free tier · Pro $10/mo
A free tier gives a monthly allowance of completions and chat requests. Pro (around $10/month) is unlimited for individuals with higher limits; Business is billed per seat. Confirm on GitHub's pricing page.
Is there a free version?
Yes — a monthly allowance of completions and chat messages, plus free access for verified students and maintainers of popular open-source projects.
How to create an account
Install the Copilot extension in your editor, sign in with your GitHub account, and activate the free plan or a subscription on github.com. No separate Copilot account exists.
How to set it up
- 1Install the Copilot extension for your editor
- 2Sign in with GitHub when prompted
- 3Activate the plan on your GitHub settings page
- 4Open the Copilot Chat panel and pin it
- 5Check the shortcut for inline suggestions
- 6Turn off suggestions for files where they distract you
How to use it, step by step
- 1Start typing and accept a suggestion with Tab when it is right
- 2Open chat and ask about the file you are in
- 3Select code and ask for a refactor or an explanation
- 4Use the slash commands for tests and documentation
- 5Review every suggestion before committing
- 6Ask for a pull request summary when you open one
Beginner tutorials
- Accepting and rejecting your first suggestions
- Explaining a function you did not write
- Generating a test file for one function
Advanced tutorials
- Using chat with context from several files
- Copilot code review on a pull request
- Writing a repository instructions file for consistent answers
Video demonstrations
- GitHub's official Copilot getting-started series on the GitHub YouTube channel
Example projects
- A set of unit tests for an untested utility module
- A small CLI script from a written description
- Refactoring a long function into smaller pieces
Ready-to-use prompts
Explain what the selected function does, then list the edge cases it does not handle.
Write tests for the selected function using the project's existing test framework and naming style.
Refactor the selected block to remove the repeated validation, keeping behaviour identical.
Common mistakes
- Accepting suggestions without reading them
- Letting it invent library methods that do not exist
- Ignoring licence implications of generated snippets
- Using it for security-sensitive code without review
Troubleshooting
- No suggestions appear: check the extension is enabled for that file type.
- Chat ignores context: open the relevant files or reference them explicitly.
- Hitting the free limit: wait for the monthly reset or upgrade.
- Suggestions are noisy: disable inline completions and keep chat only.
Similar alternatives
- Cursor — deeper project-wide editing
- Windsurf — agent-first editor
- Tabnine — privacy-focused completions
- Replit — browser IDE with AI and hosting
Advantages and disadvantages
Advantages
- Works in the editor you already use
- Generous free tier
- Strong GitHub integration
- Good for tests and boilerplate
Disadvantages
- Less capable at large multi-file edits than agent tools
- Suggestions can be subtly wrong
- Free limits are modest
- Quality varies by language