Visual Studio With GitHub Copilot – AI Pair Programming2024-05-23T11:45:30-07:00

Latest Visual Studio 2022 with GitHub Copilot woven in

Spend more time on code that matter, with your AI pair programmer now seamlessly integrated.

Get started in just 3 steps

GitHub Copilot installation screenshot

Install latest version of Visual Studio 2022

GitHub Copilot’s latest experience is integrated into Visual Studio and combines the capabilities of GitHub Copilot’s code completion and GitHub Copilot Chat into one convenient package. Download the latest Visual Studio 2022 to discover the new features and improvements.

GitHub Copilot installation screenshot

Sign up for free trial

GitHub Copilot is free for verified students and for maintainers of popular open-source projects on GitHub. If you’re not a student or a maintainer of a popular open-source project, you can try GitHub Copilot for free with a one-time 30-day trial.

Github Copilot sign in screenshot

Sign in with your GitHub account

To enable GitHub Copilot, ensure you have added your GitHub account to Visual Studio. For more information, see  Work with GitHub accounts in Visual Studio in the Microsoft documentation.

5 tips and tricks

01
Best practices

GitHub Copilot is a coding assistant powered by Artificial Intelligence (AI), which can run in various environments and help you be more efficient in your daily coding tasks. In this new series of content, we will show you how GitHub Copilot works in Visual Studio specifically and how it helps you being more productive.

02
Prompt like a pro

The quality of the output of any Large Language Model depends largely on the quality of the prompt, and GitHub Copilot is no exception. In this new video, Gwyn teaches about “prompt engineering” for GitHub Copilot in Visual Studio 2022, and how to create better results with better prompts.

03
Code completions

Start writing in the editor and Copilot will suggest code as you type.
Tip: press “tab” to accept a suggestion.

04
Inline chat

Use Inline Chat will help you write your methods, classes, unit tests by converting your prompts to code. Open Inline by right-clicking in your text file and selecting “Ask Copilot” or Alt + /`
Tip: Use”/” to state your intent or “#” to refer to your files(s). Like “/test for #filename”

05
Chat window

Ask questions about your solution or files.  Open from the Copilot Badge or CTRL + /, C.
Tip: Use #solution to refer to your active solution (only for C#) in Visual Studio

Don’t fly solo

Developers all over the world use GitHub Copilot to code faster, focus on business logic over boilerplate, and do what matters most: building great software.

Copilot Individual

For individual developers, freelancers, students, and educators that want to code faster and happier.

$10USDper month / $100 USD per year

Start a free trial
Free for verified students, teachers, and maintainers of popular open source projects.
What’s included

Chat

  • Unlimited messages, interactions, and history
  • Context-aware coding support and explanations
  • Debugging and security remediation assistance
  • Conversations tailored to your organization’s repositories
  • Answers based on your organization’s knowledge base
  • Access to knowledge from top open source repositories
  • Pull request diff analysis
  • Web search powered by Bing (beta)

Code completion

  • Real time code suggestions
  • Comments to code
  • Fine-tuned models (coming soon as add-on)

Smart actions

  • Inline chat and prompt suggestions
  • Slash commands and context variables
  • Commit message generation
  • Pull request description and summarization

Supported environments

  • IDE, CLI and GitHub Mobile
  • GitHub.com

Management and policies

  • Public code filter
  • User management and SSO
  • Data excluded from training by default
  • IP indemnity
  • Content exclusion
  • SAML SSO authentication1
  • Requires GitHub Enterprise Cloud

Most popular

Copilot Business

For organizations ready to improve engineering velocity, code quality, and developer experience.

$19USDper user / month

What’s included

Chat

  • Unlimited messages, interactions, and history
  • Context-aware coding support and explanations
  • Debugging and security remediation assistance
  • Conversations tailored to your organization’s repositories
  • Answers based on your organization’s knowledge base
  • Access to knowledge from top open source repositories
  • Pull request diff analysis
  • Web search powered by Bing (beta)

Code completion

  • Real time code suggestions
  • Comments to code
  • Fine-tuned models (coming soon as add-on)

Smart actions

  • Inline chat and prompt suggestions
  • Slash commands and context variables
  • Commit message generation
  • Pull request description and summarization

Supported environments

  • IDE, CLI and GitHub Mobile
  • GitHub.com

Management and policies

  • Public code filter
  • User management and SSO
  • Data excluded from training by default
  • IP indemnity
  • Content exclusion
  • SAML SSO authentication1
  • Requires GitHub Enterprise Cloud

New

Copilot Enterprise

For companies looking to customize GitHub Copilot to their organization and infuse AI across the developer workflow.

$39USDper user / month

What’s included

Chat

  • Unlimited messages, interactions, and history
  • Context-aware coding support and explanations
  • Debugging and security remediation assistance
  • Conversations tailored to your organization’s repositories
  • Answers based on your organization’s knowledge base
  • Access to knowledge from top open source repositories
  • Pull request diff analysis
  • Web search powered by Bing (beta)

Code completion

  • Real time code suggestions
  • Comments to code
  • Fine-tuned models (coming soon as add-on)

Smart actions

  • Inline chat and prompt suggestions
  • Slash commands and context variables
  • Commit message generation
  • Pull request description and summarization

Supported environments

  • IDE, CLI and GitHub Mobile
  • GitHub.com

Management and policies

  • Public code filter
  • User management and SSO
  • Data excluded from training by default
  • IP indemnity
  • Content exclusion
  • SAML SSO authentication1
  • Requires GitHub Enterprise Cloud

1: Authentication with SAML single sign-on (SSO) available for organizations using GitHub Enterprise Cloud.

Learn about GitHub Copilot Terms and Conditions.

Helpful resources

Start a free trial of GitHub Copilot

Feedback