GitHub Copilot

An AI pair programmer that suggests code as you type and can chat, review and make changes in your editor and on GitHub.

by GitHub (Microsoft) No ratings yet

What it is

GitHub Copilot lives in your code editor and on GitHub. It completes lines and whole functions as you type, answers questions about your code in a chat panel, and in agent mode can make multi-file changes or work on an issue and open a pull request.

Key features

  • Inline suggestions while you type. Press Tab to accept.
  • Copilot Chat in the editor: explain code, write tests, fix errors.
  • Agent mode / coding agent for larger, multi-step tasks.
  • Pull request help: summaries and code review on GitHub.
  • Choice of several underlying AI models.

Getting started

  1. Enable Copilot in your GitHub account settings (a free tier is available).
  2. Install the GitHub Copilot extension in VS Code or your JetBrains IDE and sign in.
  3. Start typing code or a comment describing what you want.
  4. Open the Copilot Chat panel to ask questions about the open file.

Tips

Prompt
/tests Write unit tests for the selected function. Cover empty input,
invalid types and the normal case. Use the testing library already used in this project.
  • Write a clear comment or function name first; suggestions follow your intent.
  • Keep related files open; Copilot uses them as context.

Limitations

  • Suggestions can be wrong or insecure. Review and test them like code from a colleague.
  • Organisation policies may restrict features.

Comments 0

Share tips, prompts that worked for you, or questions.

No comments yet. Be the first to share a tip.