Coding

GitHub Copilot

Get coding suggestions and ask questions inside your development workflow.

G2 rating
4.4 / 5 · 404 reviews
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.

Common problems and how to fix them
ProblemWhat to checkWhat to change
Copilot edits the implementation tooCompare 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 implementationVerify 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.

Sample brief
Add a single test for normalizeName("   ") returning an empty string, using the project’s existing test runner. Leave the function itself untouched.
  1. 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.
  2. 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.
  3. 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.

Example results for the sample brief
CheckWhat you might seeWhat to do next
Review the diffOnly a test file changes and it uses the project’s existing conventions.Remove unnecessary helpers or fixture setup before evaluating the test.
Check the failureThe 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 passThe 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 caseHow to try itWhat to check
Regression testsAsk for a failing test before you fix a bug.Confirm the test fails for the intended reason.
Code explanationsAsk what a function expects, returns, and may reject.Verify the explanation against callers and existing tests.

Which plan should you try?

PlanPriceWho should consider it
FreeUS$0Try limited completions and agent usage in your editor.
ProUS$10/monthCompare the included AI credits with your regular coding work.
Pro+US$39/monthConsider it for higher allowances and wider model access.
MaxUS$100/monthCompare 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

4.4 / 5404 reviews on G2 ↗

2 featured user reviews.

Md. Azharul I.

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

Sachin R.

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

Sources and further reading