Contact us
Two people working at a desk with two monitors
Not sure where AI fits?

An AI opportunity audit looks at how the work gets done and gives you findings and a plan.

Start with an audit
A business owner and an adviser looking at a laptop together

Guide

How to use GitHub Copilot

GitHub Copilot is an AI pair programmer for developers. It suggests code as you type, answers questions about your code, makes changes across files and helps review pull requests. Here is how to use it well.

Written by the team at AI Integration Partners. About us

Getting set up

Sign up for a GitHub Copilot plan, individual or business, and install the Copilot extension in your editor: VS Code, Visual Studio, JetBrains IDEs and others. Sign in with your GitHub account, and suggestions start appearing as you type.

Code suggestions

As you write, Copilot suggests the next line or a whole function in grey text. Press Tab to accept, or keep typing to ignore it. Clear function names and comments describing what you want lead to better suggestions.

Copilot Chat

Open the chat panel to ask questions about your code: explain this function, why is this test failing, how do I add pagination here. Select code first to focus the question. Chat can suggest edits that you apply with a click.

Agent mode

In agent mode, Copilot takes a task, such as add input validation to this form, and works across files: reading code, making changes, running commands and tests, and iterating. You review and accept the changes.

Code review

Copilot can review pull requests on GitHub, leaving comments on possible bugs and improvements. Treat its comments as a first pass, not a replacement for human review.

Good practice

Read every suggestion before accepting. Run tests. Watch for insecure patterns and outdated libraries. On business plans, admins can set policies, such as blocking suggestions that match public code.

Questions

How to use GitHub Copilot: your questions answered

Something we have not covered?

Ask how we would do it
Is GitHub Copilot the same as Microsoft Copilot?

No. GitHub Copilot is for writing code; Microsoft 365 Copilot is for Office work.

Which editors support GitHub Copilot?

VS Code, Visual Studio, JetBrains IDEs, Neovim and others.

Is GitHub Copilot safe for company code?

Business plans exclude your code from training and give admin controls. Check current terms.

Can GitHub Copilot write tests?

Yes. Ask it to write tests for selected code, then review them.

Does GitHub Copilot replace developers?

No. It speeds up developers, who still design, review and own the code.

What models does GitHub Copilot use?

It offers a choice of models from several providers, including Anthropic and OpenAI.

Four colleagues relaxed around one screen at the end of the day

Want your team using this properly?

Our training days are hands on, at your office or remote.

Ask how we would do it
Ask how we would do it