Skip to content

Commit 0b9e5f4

Browse files
anandmegdenrea
andauthored
Add section on AI doc comments generation (#13960)
* Add section on AI doc comments * Update * fix file name error * Acrolinx fix --------- Co-authored-by: Dennis Rea <[email protected]>
1 parent f9ec9dc commit 0b9e5f4

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed
959 KB
Loading

docs/ide/visual-studio-github-copilot-extension.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: About GitHub Copilot Completions in Visual Studio
33
description: Use GitHub Copilot completions in Visual Studio to use AI assistance to generate information about your code, including suggested edits and new code snippets.
4-
ms.date: 3/27/2025
4+
ms.date: 5/30/2025
55
ms.topic: overview
66
author: anandmeg
77
ms.author: meghaanand
@@ -112,14 +112,20 @@ To try the new model for better suggestions and performance, select **GPT-4o Cop
112112
113113
:::image type="content" source="media/vs-2022/visual-studio-github-copilot-extension/completions-model-picker.png" alt-text="Screenshot that shows the Completions Model Picker.":::
114114
115-
If you don’t see the new GPT-4o model in the dropdown, try restarting Visual Studio to retreive the latest model list.
115+
If you don’t see the new GPT-4o model in the dropdown, try restarting Visual Studio to retrieve the latest model list.
116116
117117
### Access
118118
119119
- If you're a Copilot Pro user, the new model is available for you in 17.14 Preview 2 and later.
120120
- If you're a Copilot Business or Enterprise user, your administrator needs to enable this model for your organization by opting in to [**Editor preview features**](https://docs.github.com/en/enterprise-cloud@latest/copilot/managing-copilot/managing-github-copilot-in-your-organization/managing-policies-for-copilot-in-your-organization#about-policies-for-github-copilot) in the Copilot policy settings on *github.com*.
121121
- If you're a [Copilot Free](copilot-free-plan.md) user, using this model counts towards your 2,000 free monthly completions.
122122
123+
## Doc comments generation
124+
125+
To use automatic doc comments generation on your C++ or C# project file, type the comment pattern according to your settings configuration, for example, `///`, and Copilot instantly completes the function description based on the function's content.
126+
127+
:::image type="content" source="media/vs-2022/visual-studio-github-copilot-extension/doc-comments-generation.gif" alt-text="Animated screenshot that shows the automatic docs comment generation with Copilot feature." lightbox="media/vs-2022/visual-studio-github-copilot-extension/doc-comments-generation.gif":::
128+
123129
## Exploring GitHub Copilot
124130
125131
To see GitHub Copilot in action, check out the following video tutorial. <br><br>*Video length: 1.19 minutes*

0 commit comments

Comments
 (0)