Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>GitHub CopilotNew to Visual Studio Code? Get it now.
GitHub Copilot

GitHub Copilot

GitHub

github.com
|
36,937,671 installs
| (962) | Free Trial
Your AI pair programmer
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

GitHub Copilot - Your AI peer programmer

GitHub Copilot is an AI peer programming tool that helps you write code faster and smarter.

GitHub Copilot adapts to your unique needs allowing you to select the best model for your project, customize chat responses with custom instructions, and utilize agent mode for AI-powered, seamlessly integrated peer programming sessions.

Sign up for GitHub Copilot Free!

Working with GitHub Copilot agent mode to make edits to code in your workspace

When you install Copilot in Visual Studio Code, you get two extensions:

  • GitHub Copilot (this extension) - Provides inline coding suggestions as you type.
  • GitHub Copilot Chat - A companion extension that provides conversational AI assistance.

Getting access to GitHub Copilot

Sign up for GitHub Copilot Free, or request access from your enterprise admin.

To access GitHub Copilot, an active GitHub Copilot subscription is required. You can read more about our business and individual offerings at github.com/features/copilot.

AI-powered coding sessions

Start an AI-powered coding session tailored to your workflow. Copilot Edits allows you to quickly iterate on code changes directly in the editor, across multiple files using natural language. For a more autonomous peer programmer experience, agent mode performs multi-step coding tasks at your command. It automatically handles compile and lint errors, monitors terminal and test output, and iterates until the task is complete. Edit mode offers a conversational, step-by-step coding experience. Engage in multi-turn chat conversations while Copilot applies edits directly to your codebase, allowing you to review changes in context and maintain full control.

Agent mode in Copilot Chat creating a new Vue application

Code suggestions in the editor

Automatically receive code suggestions in the editor from completions and Next Edit Suggestions to help you write code faster. Code completions provide suggestions at the current location, tailored to your coding style and your existing code. Copilot Next Edit Suggestions (Copilot NES) takes it a step further and predicts what and where your next logical code change will be. Use the Tab key to navigate and accept changes in quick succession.

Copilot Next Edit Suggestions

Ask and learn about your code with chat

Ask Copilot for help with any task or question in the Chat view, bringing in code from your current files. Rather than giving you a generic answer, it can give answers that are relevant for your codebase using information provided by participants, variables, and slash commands.

Using the workspace chat participant

Apply Copilot's AI suggestions directly to your code using Inline chat, staying in the flow. Need help with refactoring a method, adding error handling, or explaining a complex algorithm - just launch Copilot in the editor!

Inline chat in VS Code

Supported languages and frameworks

GitHub Copilot works on any language, including Java, PHP, Python, JavaScript, Ruby, Go, C#, or C++. Because it’s been trained on languages in public repositories, it works for most popular languages, libraries and frameworks.

Version compatibility

As Copilot Chat releases in lockstep with VS Code due to its deep UI integration, every new version of Copilot Chat is only compatible with the latest and newest release of VS Code. This means that if you are using an older version of VS Code, you will not be able to use the latest Copilot Chat.

Only the latest Copilot Chat versions will use the latest models provided by the Copilot service, as even minor model upgrades require prompt changes and fixes in the extension. An older version of Copilot Chat will still use the latest version of Copilot completions.

Privacy and preview terms

By using Copilot Chat you agree to GitHub Copilot chat preview terms. Review the transparency note to understand about usage, limitations and ways to improve Copilot Chat during the technical preview.

Your code is yours. We follow responsible practices in accordance with our Privacy Statement to ensure that your code snippets will not be used as suggested code for other users of GitHub Copilot.

To get the latest security fixes, please use the latest version of the Copilot extension and VS Code.

Resources & next steps

  • Sign up for GitHub Copilot Free
    • If you're using Copilot for your business, check out Copilot Business and Copilot Enterprise
  • Get started with Copilot in VS Code tutorial
  • Copilot Chat quickstart video to learn Copilot Chat in less than 4 minutes
  • VS Code Copilot Series on YouTube
  • FAQ
  • Feedback: We'd love to get your help in making GitHub Copilot better!
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft