You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The [GitHub Copilot](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot) extension is an AI pair programmer tool that helps you write code faster and smarter. You can use the Copilot extension in Visual Studio Code to generate code, learn from the code it generates, and even configure your editor.
14
14
15
-
With GitHub Copilot in VS Code you can:
15
+
GitHub Copilot can provide assistance in a variety of scenarios.
16
+
17
+
*[Get code suggestions as you type](#code-completions-in-the-editor)
18
+
*[Make large changes across multiple files](#iterate-on-large-changes-across-multiple-files)
19
+
*[Ask questions about your code](#answer-coding-questions)
20
+
*[Refactor and improve your code](#code-refactoring-and-improvements)
21
+
*[Fix code issues and debugging](#fix-issues)
22
+
*[Scaffold a new project or files](#jumpstart-your-project)
23
+
*[Configure and generate tests](#generate-unit-test-cases)
*[Improve your productivity in VS Code](#productivity-improvements)
26
+
27
+
## Copilot in VS Code
28
+
29
+
Choose the GitHub Copilot interface in VS Code that best matches your use case:
30
+
31
+
*[**Code completions**](/docs/copilot/ai-powered-suggestions.md). Start typing in the editor and get code suggestions from Copilot.
32
+
33
+
*[**Inline Chat**](/docs/copilot/copilot-chat.md#inline-chat). Use chat conversation to apply code edits directly in the editor.
34
+
35
+
*[**Chat view**](/docs/copilot/copilot-chat.md#chat-view). Have an ongoing chat conversation to ask questions about your code and iterate on coding ideas and concepts.
16
36
17
-
* Get inline code suggestions while you're writing and iterating on code.
18
-
* Start a chat conversation to generate or refactor source code, produce documentation comments, or generate unit tests.
19
-
* Get help with fixing errors in your code, or resolve errors while running commands in the terminal.
20
-
* Ask questions to help ramp-up on a new code base, or accelerate learning a new programming language or framework.
21
-
* Use chat features to discover and configure your VS Code setup.
37
+
*[**Copilot Edits view**](/docs/copilot/copilot-edits.md). Start a multi-file editing session for directly applying large changes to your project.
22
38
23
-
<iframewidth="560"height="315"src="https://www.youtube-nocookie.com/embed/jXp5D5ZnxGM"title="Get to know GitHub Copilot in VS Code"frameborder="0"allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"allowfullscreen></iframe>
39
+
*[**Throughout the user interface**](#productivity-improvements). Access purpose-specific Copilot features in VS Code to generate commit messages, get rename suggestions, and much more.
24
40
25
-
## Prerequisites
41
+
## Getting started
26
42
27
-
* To use GitHub Copilot in VS Code, you must have the [GitHub Copilot](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot) extension. When you install this extension, the [GitHub Copilot Chat](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat) extension is also installed.
43
+
1. Install the GitHub Copilot extension. This also installs the GitHub Copilot Chat extension.
28
44
29
45
> <aclass="install-extension-btn"href="vscode:extension/GitHub.copilot">Install the GitHub Copilot extension</a>
30
46
31
-
* To use GitHub Copilot, you must have an active subscription for GitHub Copilot in your personal account, or you need to be assigned a seat by your organization. Sign up for a [GitHub Copilot free trial](https://github.com/login?return_to=%2fgithub-copilot%2fsignup) in your personal account.
47
+
1. Follow the steps in the [Copilot setup guide](/docs/copilot/setup.md) to configure GitHub Copilot in VS Code.
32
48
33
-
Follow these steps to [Set up GitHub Copilot in VS Code](/docs/copilot/setup.md).
49
+
> [!TIP]
50
+
> If you don't yet have a GitHub Copilot subscription, sign up for a [GitHub Copilot free trial](https://github.com/login?return_to=%2fgithub-copilot%2fsignup) in your personal account.
34
51
35
-
## Copilot tutorials
52
+
1. Get going with these hands-on tutorials to learn how to use GitHub Copilot in VS Code.
36
53
37
-
*[GitHub Copilot Quickstart](/docs/copilot/getting-started.md) - discover the key features of GitHub Copilot in VS Code.
38
-
*[Copilot Chat Tutorial](/docs/copilot/getting-started-chat.md) - get started with AI chat conversations.
54
+
*[GitHub Copilot Quickstart](/docs/copilot/getting-started.md) - discover the key features of GitHub Copilot in VS Code.
55
+
56
+
*[Copilot Chat Tutorial](/docs/copilot/getting-started-chat.md) - get started with AI chat conversations.
39
57
40
58
## Keyboard shortcuts
41
59
@@ -52,18 +70,6 @@ Check our [Copilot cheat sheet](/docs/copilot/copilot-vscode-features.md) for an
52
70
53
71
## Use cases for GitHub Copilot in VS Code
54
72
55
-
GitHub Copilot can provide assistance in a variety of scenarios:
56
-
57
-
*[Code completions in the editor](#code-completions-in-the-editor)
58
-
*[Iterate on large changes across multiple files](#iterate-on-large-changes-across-multiple-files)
*[Improve your productivity in VS Code](#productivity-improvements)
66
-
67
73
### Code completions in the editor
68
74
69
75
***Copilot suggests code as you type**. Copilot analyzes the context in the file you're editing and related files, and offers suggestions from within the editor. For example, begin typing the name of a method and Copilot suggests the implementation, following your coding style.
@@ -174,8 +180,6 @@ GitHub Copilot can provide assistance in a variety of scenarios:
174
180
175
181
## Additional resources
176
182
177
-
Read more about Copilot in the [GitHub Copilot documentation](https://docs.github.com/en/copilot/about-github-copilot/what-is-github-copilot).
178
-
179
-
If you prefer learning through videos, check out the [VS Code Copilot Series](https://www.youtube.com/playlist?list=PLj6YeMhvp2S5_hvBl2SE-7YCHYlLQ0bPt) on YouTube, where you can find more introductory content and programming-specific videos for using Copilot with [Python](https://www.youtube.com/watch?v=DSHfHT5qnGc), [C#](https://www.youtube.com/watch?v=VsUQlSyQn1E), [Java](https://www.youtube.com/watch?v=zhCB95cE0HY), [PowerShell](https://www.youtube.com/watch?v=EwtRzAFiXEM), [C++](https://www.youtube.com/watch?v=ZfT2CXY5-Dc), and more.
183
+
You can read more about Copilot and how to use it in VS Code in the [GitHub Copilot documentation](https://docs.github.com/copilot/getting-started-with-github-copilot?tool=vscode).
180
184
181
-
Check our [Advanced Features](https://www.youtube.com/watch?v=SLMfhuptCo8) video on YouTube for in-depth coverage of using Copilot for refactoring, context-based suggestions, unit tests, and more.
185
+
Or check out the [VS Code Copilot Series](https://www.youtube.com/playlist?list=PLj6YeMhvp2S5_hvBl2SE-7YCHYlLQ0bPt)on YouTube, where you can find more introductory content and programming-specific videos for using Copilot with [Python](https://www.youtube.com/watch?v=DSHfHT5qnGc), [C#](https://www.youtube.com/watch?v=VsUQlSyQn1E), [Java](https://www.youtube.com/watch?v=zhCB95cE0HY), [PowerShell](https://www.youtube.com/watch?v=EwtRzAFiXEM), [C++](https://www.youtube.com/watch?v=ZfT2CXY5-Dc), and more.
0 commit comments