|
1 | 1 | --- |
2 | | -title: Get Started with Copilot in Visual Studio |
3 | | -description: Learn how to get started successfully with using Copilot in Visual Studio. |
4 | | -ms.date: 8/25/2025 |
| 2 | +title: Get Started with Copilot |
| 3 | +description: Learn how to get started with Copilot in Visual Studio. |
| 4 | +ms.date: 8/29/2025 |
5 | 5 | ms.update-cycle: 180-days |
6 | | -ms.topic: install-set-up-deploy |
7 | | -author: meghaanand |
| 6 | +ms.topic: get-started |
| 7 | +author: anandmeg |
8 | 8 | ms.author: meghaanand |
9 | 9 | ms.manager: mijacobs |
10 | 10 | ms.subservice: ai-tools |
11 | 11 | ms.collection: ce-skilling-ai-copilot |
12 | 12 | monikerRange: '>= vs-2022' |
13 | | -ms.custom: [copilot-learning-hub] |
| 13 | +ms.custom: copilot-learning-hub |
14 | 14 | --- |
15 | 15 |
|
16 | 16 | # Getting Started with Copilot |
17 | 17 |
|
18 | | -Welcome to Copilot, your AI companion, right inside Visual Studio! |
| 18 | +Welcome to Copilot, your AI companion in Visual Studio! |
19 | 19 |
|
20 | | -Copilot is here to help you code faster and with greater accuracy by suggesting entire lines or blocks of code, answering questions, and assisting with routine tasks such as writing unit tests, debugging and profiling — all directly in your Visual Studio environment. |
| 20 | +Copilot helps you code faster and with greater accuracy by suggesting entire lines or blocks of code, answering questions, and assisting with routine tasks such as writing unit tests, debugging and profiling — all directly in your Visual Studio environment. |
21 | 21 |
|
22 | | -By the end of this guide, you will be well equipped to explore the best of your personal Copilot in Visual Studio. |
| 22 | +In this article you learn how to use Copilot and make the most of its features in Visual Studio. |
23 | 23 |
|
24 | 24 | ## Launch Copilot |
25 | | -1. Open **Visual Studio** (version 17.8 or later). |
26 | | -> Note: Update to the latest version of Visual Studio to get the most out of Copilot. |
27 | | -1. Create a new project, open an existing project, or continue without code. |
28 | | -1. Click on the **GitHub Copilot** badge in the upper right corner of Visual Studio. Then, click **Open Chat Window to Sign In** |
| 25 | + |
| 26 | +1. Launch Visual Studio (version 17.8 or later). </br> |
| 27 | + <sup>*</sup>It's recommended to update to the latest version of Visual Studio to get the most out of Copilot. |
| 28 | +1. Create a new project, open an existing project, or continue without code to launch the IDE. |
| 29 | +1. Select the **GitHub Copilot** badge in the upper right corner of Visual Studio, and select **Open Chat Window to Sign In** |
29 | 30 |
|
30 | 31 | :::image type="content" source="media/vs-2022/visual-studio-github-copilot-install-and-states/copilot-state-inactive-sign-in.png" alt-text="GitHub Copilot badge in Visual Studio"::: |
31 | 32 |
|
32 | | - > [!NOTE] |
33 | | - > If you do not have Copilot installed, click "Install Copilot" and make sure you have Copilot installed. For more guidance, see [Manage your GitHub Copilot installation in Visual Studio](visual-studio-github-copilot-install-and-states.md). |
| 33 | + If Copilot isn't installed, select **Install Copilot** from the dropdown and follow the installer prompts. For more information, see [Manage Copilot installation and state](visual-studio-github-copilot-install-and-states.md). |
| 34 | + |
| 35 | +1. In the Chat window, choose to sign in with your existing GitHub account or [**Sign up for Copilot Free**](copilot-free-plan.md). Follow the prompts in your browser to complete the sign-in or sign-up process. After you finish, return to Visual Studio to continue using Copilot. |
34 | 36 |
|
35 | | -1. From the Chat window, click one of the buttons to sign in with an existing account or [**Sign up for Copilot Free**](copilot-free-plan.md). Complete the sign up or sign in process in your browser through GitHub. Return to Visual Studio once you are signed in. |
36 | | -1. Copilot is now ready to use in Visual Studio! |
| 37 | +Copilot is now ready to use in Visual Studio! |
37 | 38 |
|
38 | 39 | ## Start using Copilot |
39 | | -Once you're signed in, you'll be able to interact with Copilot in the Chat window and throughout the IDE. |
40 | 40 |
|
41 | | -- **Use Copilot [agent mode](copilot-agent-mode.md) and MCP**: In the Chat window, click on **Ask** and switch to **Agent** to access agent mode. Click the tools icon to access MCP, configure servers, and select any tools you wish for Copilot to access. Send a message like "Write unit tests for the methods in this file" to get direct Copilot assistance with generating the code you need. |
| 41 | +Once you're signed in, you can use Copilot in the Chat window and throughout the IDE. |
| 42 | + |
| 43 | +- **[Agent mode](copilot-agent-mode.md) and [MCP](mcp-servers.md)**: In the Chat window, select **Ask** and switch to **Agent** to enable agent mode. Use the tools icon to access MCP, configure servers, and choose which tools Copilot can use. For example, send "Write unit tests for the methods in this file" to get Copilot assistance with generating targeted code. |
| 44 | + |
| 45 | +- **[Completions](visual-studio-github-copilot-extension.md) and [Next Edit Suggestions](copilot-next-edit-suggestions.md)**: As you code, Copilot provides suggestions directly in the editor. Copilot will suggest both new code(shown as gray text) and edits to existing code. |
42 | 46 |
|
43 | | -- **Explore [Copilot Completions](visual-studio-github-copilot-extension.md) and [Next Edit Suggestions](copilot-next-edit-suggestions.md)**: Code in Visual Studio as you normally do and Copilot will offer intelligent code suggestions directly in your editor. Copilot will suggest both new code in the form of "gray text" as well as edits to your existing code. |
| 47 | +- **Copilot actions across Visual Studio**: Find Copilot-powered actions and suggestions in the editor context menu, Error List, Feature Search, and other areas of the IDE. |
44 | 48 |
|
45 | | -- **Discover Copilot actions across Visual Studio**: Uncover Copilot-powered actions and suggestions throughout the IDE - from your editor context menu, Error List, Feature Search, and more! |
| 49 | +## Tailor Copilot Chat to your workflow |
46 | 50 |
|
47 | | -## Tailor your Copilot Chat to you |
48 | 51 | Make Copilot work best for you, your project, and whatever you need most in your development workflow. |
49 | 52 |
|
50 | | -- **Share references for [context](copilot-chat-context-references.md)**: Click the **+** button to attach any additional desired context, from uploading images to asking Copilot to look at your entire solution. |
| 53 | +- **Manage [context with references](copilot-chat-context-references.md)**: Use the **+** button to attach additional context, such as files, images, or ask Copilot to reference your entire solution. |
51 | 54 |
|
52 | | -- **Access different [models](copilot-usage-and-models.md#understand-model-selection)**: Use the model picker in the prompt window to explore the latest AI models, or [bring your own model](https://devblogs.microsoft.com/visualstudio/bring-your-own-model-visual-studio-chat/) to Copilot! Experiment with different models for different scenarios - whether it's answering quick questions, writing documentation, or generating multi-file code edits. |
| 55 | +- **Access different [models](copilot-usage-and-models.md#understand-model-selection)**: Use the model picker in the prompt window to select AI models, or [bring your own model](copilot-select-add-models.md#bring-your-own-model-byom) to Copilot! Explore different models for different scenarios, whether it's answering quick questions, writing documentation, or generating multi-file code edits. |
53 | 56 |
|
54 | | -- **Add custom instructions**: Add reusable [custom instructions](copilot-chat-context.md#enable-custom-instructions) in `.github/copilot-instructions.md` and [prompt files](copilot-chat-context.md#use-prompt-files)) to `.github/prompts` to tailor how Copilot responds to you, from honoring your unique coding style to considering special edge cases for your project. |
| 57 | +- **Add custom instructions**: Add reusable [custom instructions](copilot-chat-context.md#enable-custom-instructions) in `.github/copilot-instructions.md` and [prompt files](copilot-chat-context.md#use-prompt-files) in `.github/prompts` to customize Copilot’s responses for your coding style or project needs. |
55 | 58 |
|
56 | 59 | ## Next steps |
57 | 60 |
|
58 | | -Access the **Copilot Walkthrough** (from the **GitHub Copilot** badge in the upper right corner of Visual Studio) at any time to revisit what you can achieve with Copilot in Visual Studio. |
| 61 | +To review Copilot features at any time, select **GitHub Copilot Walkthrough** from the **GitHub Copilot** badge in the upper right corner of Visual Studio. |
59 | 62 |
|
60 | | -To learn more, consider building a full app from scratch through a [Hands-on lab with GitHub Copilot in Visual Studio 2022](https://github.com/dotnet-presentations/build-2025-lab300). |
| 63 | +For a hands-on experience, try building a complete app with the [Hands-on lab: GitHub Copilot in Visual Studio 2022](https://github.com/dotnet-presentations/build-2025-lab300). |
0 commit comments