Latest Visual Studio 2022 with GitHub Copilot woven in
Spend more time on code that matters, with your AI pair programmer now seamlessly integrated.
Get started in just 3 steps
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.
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.
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
Chat
- Unlimited messages and interactions
- Context-aware coding support and explanations
- Debugging and security remediation assistance
- Access to knowledge from top open source repositories1
- Generate tests, docs, and more with slash commands
- Web search powered by Bing (Preview)
- Explain failed Actions jobs (Preview)
- Answers about issues, PRs, discussions, files, commits, etc1
- Multi-file editing in VS Code (Preview)
- Switch between models (Preview)
Code completion
- Real time code suggestions
- Comments to code
Customization
- Tailor chat conversations to your private codebase(up to 5/50/unlimited repos)1
- Unlimited integrations with GitHub Copilot Extensions (Preview)
- Build a private extension for internal tooling (Preview)
- Personalize responses with custom instructions (Preview)
- Attach knowledge bases to chat for organizational context
- Fine-tuned models for code completion (coming soon as add-on)
- Set coding guidelines for code review
AI-native experiences
- Inline chat and prompt suggestions
- Slash commands and context variables
- Commit message generation
- Summaries for pull requests, issues, and discussions
- Code feedback in VS Code (Preview)
- Explanations in Visual Studio’s Quick Info
- Debug assistant in Visual Studio
- Upgrade assistant for Java in VS Code (Preview)
- Code review in GitHub (Preview)
- Copilot Workspace for pull requests (Preview)
- Technical Preview access to Copilot Workspace
Supported environments
- Editors and IDEs
- GitHub (github.com and mobile)
- GitHub CLI and Windows Terminal
Management and policies
- Public code filter with code referencing
- User management
- Data excluded from training by default
- Enterprise-grade security
- IP indemnity
- Content exclusion
- SAML SSO authentication2
- Usage metrics
- Requires GitHub Enterprise Cloud
Most popular
Copilot Business
For organizations ready to improve engineering velocity, code quality, and developer experience.
$19USDper user / month
Chat
- Unlimited messages and interactions
- Context-aware coding support and explanations
- Debugging and security remediation assistance
- Access to knowledge from top open source repositories1
- Generate tests, docs, and more with slash commands
- Web search powered by Bing (Preview)
- Explain failed Actions jobs (Preview)
- Answers about issues, PRs, discussions, files, commits, etc1
- Multi-file editing in VS Code (Preview)
- Switch between models (Preview)
Code completion
- Real time code suggestions
- Comments to code
Customization
- Tailor chat conversations to your private codebase(up to 5/50/unlimited repos)1
- Unlimited integrations with GitHub Copilot Extensions (Preview)
- Build a private extension for internal tooling (Preview)
- Personalize responses with custom instructions (Preview)
- Attach knowledge bases to chat for organizational context
- Fine-tuned models for code completion (coming soon as add-on)
- Set coding guidelines for code review
AI-native experiences
- Inline chat and prompt suggestions
- Slash commands and context variables
- Commit message generation
- Summaries for pull requests, issues, and discussions
- Code feedback in VS Code (Preview)
- Explanations in Visual Studio’s Quick Info
- Debug assistant in Visual Studio
- Upgrade assistant for Java in VS Code (Preview)
- Code review in GitHub (Preview)
- Copilot Workspace for pull requests (Preview)
- Technical Preview access to Copilot Workspace
Supported environments
- Editors and IDEs
- GitHub (github.com and mobile)
- GitHub CLI and Windows Terminal
Management and policies
- Public code filter with code referencing
- User management
- Data excluded from training by default
- Enterprise-grade security
- IP indemnity
- Content exclusion
- SAML SSO authentication2
- Usage metrics
- 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
Chat
- Unlimited messages and interactions
- Context-aware coding support and explanations
- Debugging and security remediation assistance
- Access to knowledge from top open source repositories1
- Generate tests, docs, and more with slash commands
- Web search powered by Bing (Preview)
- Explain failed Actions jobs (Preview)
- Answers about issues, PRs, discussions, files, commits, etc1
- Multi-file editing in VS Code (Preview)
- Switch between models (Preview)
Code completion
- Real time code suggestions
- Comments to code
Customization
- Tailor chat conversations to your private codebase(up to 5/50/unlimited repos)1
- Unlimited integrations with GitHub Copilot Extensions (Preview)
- Build a private extension for internal tooling (Preview)
- Personalize responses with custom instructions (Preview)
- Attach knowledge bases to chat for organizational context
- Fine-tuned models for code completion (coming soon as add-on)
- Set coding guidelines for code review
AI-native experiences
- Inline chat and prompt suggestions
- Slash commands and context variables
- Commit message generation
- Summaries for pull requests, issues, and discussions
- Code feedback in VS Code (Preview)
- Explanations in Visual Studio’s Quick Info
- Debug assistant in Visual Studio
- Upgrade assistant for Java in VS Code (Preview)
- Code review in GitHub (Preview)
- Copilot Workspace for pull requests (Preview)
- Technical Preview access to Copilot Workspace
Supported environments
- Editors and IDEs
- GitHub (github.com and mobile)
- GitHub CLI and Windows Terminal
Management and policies
- Public code filter with code referencing
- User management
- Data excluded from training by default
- Enterprise-grade security
- IP indemnity
- Content exclusion
- SAML SSO authentication2
- Usage metrics
- Requires GitHub Enterprise Cloud
1: Feature in public beta for Copilot Individual and Business plans. Requires use of repositories, issues, discussions, Actions, and other features of GitHub.
2: Authentication with SAML single sign-on (SSO) available for organizations using GitHub Enterprise Cloud.
Learn about GitHub Copilot Terms and Conditions.