Coding

GitHub Copilot
Get coding suggestions and ask questions inside your development workflow.
- G2 rating
- Pricing
- Free
- US$0
- Pro
- US$10/month
- Pro+
- US$39/month
- Max
- US$100/month
- Best for
- Developers who can review code and run project checks
Video tutorial
Getting started with GitHub Copilot · GitHub · Watch on YouTube ↗
What is GitHub Copilot?
GitHub Copilot assists with code inside supported development environments. It is useful for drafting tests, exploring unfamiliar code, and suggesting edits that you can review and run locally.
Copilot suggestions are easiest to judge when the task has a small observable outcome. Start with behavior the repository already documents or a failing case you can reproduce. The goal is a useful code or test suggestion that can be reviewed in context, rather than a high volume of edits.
Set up and test a real workflow
Open a limited workspace and confirm which existing test runner and style conventions apply. Pin the relevant file and one similar test, and give Copilot an expected behavior and a deliberately out-of-scope change. Read the patch before accepting it.
What to look for in the result
For normalizeName, ask for a test that passes an input of three spaces and expects an empty string. Check the assertion belongs in the existing test file, and run it with an intentionally wrong local implementation to confirm it fails for the expected reason. Undo that deliberate change and run the existing formatter tests before sharing the patch.
| Problem | What to check | What to change |
|---|---|---|
| Copilot edits the implementation too | Compare the changed files with the scope in your brief. | Keep the intended test changes and revert unrelated edits. |
| The test passes even with a broken implementation | Verify it imports and calls the real function. | Remove a mock or fix the expected assertion so it checks the public behavior. |
Try it: Extend tests for a small function
Choose a pure function with a known edge case. Request one regression test and retain the project's existing test conventions.
Add a single test for normalizeName(" ") returning an empty string, using the project’s existing test runner. Leave the function itself untouched.
- Run the existing check for the file or package. Pick one case the test suite does not cover and point to a nearby test that demonstrates the format. Request the test before changing production behavior.
- Read the assertion and deliberately test it against a wrong value or a known broken implementation. An assertion that passes either way will not prevent a regression.
- Review the diff and run the project’s normal checks. Verify that naming, test setup, and error handling still match the surrounding code. Keep unrelated changes out of the review.
What a usable result looks like
The diff adds one meaningful test. It fails on a deliberately wrong return value and passes for the expected behavior.
| Check | What you might see | What to do next |
|---|---|---|
| Review the diff | Only a test file changes and it uses the project’s existing conventions. | Remove unnecessary helpers or fixture setup before evaluating the test. |
| Check the failure | The test fails if normalizeName returns a space for the blank case. | Make the wrong return temporarily in the local trial and confirm the failure mentions the expected value. |
| Check the pass | The normal implementation passes the targeted test and the surrounding formatter tests. | Save the terminal output with the reviewed patch for whoever takes it next. |
What to save from the trial
A small diff containing the new boundary test, with a recorded fail-on-wrong-value and pass-on-correct-value check.
Another scenario
In an unfamiliar codebase, ask for a short map of one request from entry point to response. Verify each file and function yourself. The useful output is a shortlist that speeds orientation, even if you never accept a code suggestion.
Use cases and what to check
| Use case | How to try it | What to check |
|---|---|---|
| Regression tests | Ask for a failing test before you fix a bug. | Confirm the test fails for the intended reason. |
| Code explanations | Ask what a function expects, returns, and may reject. | Verify the explanation against callers and existing tests. |
Which plan should you try?
| Plan | Price | Who should consider it |
|---|---|---|
| Free | US$0 | Try limited completions and agent usage in your editor. |
| Pro | US$10/month | Compare the included AI credits with your regular coding work. |
| Pro+ | US$39/month | Consider it for higher allowances and wider model access. |
| Max | US$100/month | Compare the included allowance before choosing it for heavy agent use. |
Check the currently offered individual or organization plan, eligibility, and request allowances. For a workplace rollout, check admin policies and supported editor versions.
Provider pricing and access ↗ · Checked
What people say about GitHub Copilot
2 featured user reviews.
IDE assistance
Found VS Code integration useful for repetitive work. Said Copilot could lose context or suggest deprecated methods in a complex workspace.
4.5/5 · November 5, 2026 · G2 ↗ · Paraphrased
C# and unit tests
Saved time on ASP.NET boilerplate and tests, but found the suggestions sometimes needed corrections on a larger solution.
4.5/5 · October 13, 2026 · G2 ↗ · Paraphrased
Limits to check
Generated code can preserve the wrong assumption or introduce new behavior. Keep the change small and use the same code review and test process you apply to human-written code.
When to choose it
Use Copilot for routine edits and test suggestions you can review quickly in the IDE. Use a narrowly scripted transformation when deterministic results across a large set of files matter. Compare whether reviewing the generated diff saves time over writing the small patch normally.
- CodeRabbit · Have an AI reviewer summarize and comment on pull-request changes.
- Qodo · Review code changes with AI and apply organization-specific expectations to pull-request feedback.
- Continue · Work with configurable AI coding assistance through IDE integrations and a command-line agent.
Common questions
- How do I check whether an AI-written test is meaningful?
- Make the code temporarily return the wrong value and check that this test fails for the expected reason. Restore the correct code, rerun the test, and confirm the test did not become dependent on unrelated setup.
- Should I put a full issue or customer trace into the prompt?
- Use the smallest permitted reproduction that conveys the bug. Check your team policy before sharing logs, and remove credentials and personal information from examples you use in a suggestion.
Community posts
-
Checking whether Copilot reads repository instructions ↗
A developer reports that Copilot seemed to stop using the instruction file. Compare the file location and test prompt in the thread with your own setup.
GitHub Community