Skip to content

Commit 35b5b0f

Browse files
Visual studio settings (#58327)
1 parent 37293fb commit 35b5b0f

File tree

1 file changed

+13
-8
lines changed

1 file changed

+13
-8
lines changed

content/copilot/how-tos/get-code-suggestions/get-ide-code-suggestions.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -201,9 +201,7 @@ Alternatively, you can show alternate suggestions by pressing <kbd>Alt</kbd>+<kb
201201
202202
## Getting comment suggestions
203203
204-
> [!NOTE]
205-
> * Comment suggestions are currently in {% data variables.release-phases.public_preview %} and are subject to change.
206-
> * Comment suggestions are available in {% data variables.product.prodname_vs %} 17.14 Preview 2 and later.
204+
> [!NOTE] Comment suggestions are available in {% data variables.product.prodname_vs %} 17.14 Preview 2 and later.
207205
208206
{% data variables.product.prodname_copilot %} can suggest comments for your code, by analyzing the code you write and generating comments that describe what the code does. For {% data variables.copilot.copilot_free_short %} users, comment suggestions count towards your monthly {% data variables.copilot.copilot_chat_short %} usage, not your code suggestions usage.
209207
@@ -220,16 +218,23 @@ To enable comment suggestions, you need to configure the comment style in {% dat
220218
221219
1. In {% data variables.product.prodname_vs %}, in the **Tools** menu, click **Options**.
222220
1. In the left-side panel, click **Text Editor**.
223-
1. Click **C++**, then **Code Style**, then **General**.
221+
1. Click **C++**, then **Code Style**.
222+
1. Under the **Code Style** heading, click **General**.
224223
1. Under "Comments," select **Xml Doc Comments** from the dropdown.
225-
1. Select **Insert existing comment style at the start of new lines when writing comments** and **Continue single line comments.**
224+
1. Select **Insert existing comment style at the start of new lines when writing comments** and **Continue single line comments.** Then click **OK**.
225+
1. In the **Options** tab, in the left-side panel, click **GitHub**.
226+
1. Click **Copilot**, then **Editor**.
227+
1. Select **Enable AI generated descriptions for auto-inserted documentation comments in supported languages**.
226228
227229
#### For C#
228230
229231
1. In {% data variables.product.prodname_vs %}, in the **Tools** menu, click **Options**.
230-
1. In the left-side panel, click **Text Editor**.
231-
1. Click **C#**, then **Advanced**.
232-
1. Under "Comments," select **Generate XML documentation comments for ///**, **Insert // at the start of new lines when writing // comments**, and **Insert \* at the start of new lines when writing /\* \*/ comments.**
232+
1. In the left-side panel, click **Languages**.
233+
1. Click **C#**, then **More Settings**, then **Advanced**.
234+
1. Under "Comments," select **Generate XML documentation comments for ///**, **Insert // at the start of new lines when writing // comments**, and **Insert \* at the start of new lines when writing /\* \*/ comments.** Then click **OK**.
235+
1. In the **Options** tab, in the left-side panel, click **GitHub**.
236+
1. Click **Copilot**, then **Editor**.
237+
1. Select **Enable AI generated descriptions for auto-inserted documentation comments in supported languages**.
233238
234239
### Using comment suggestions
235240

0 commit comments

Comments
 (0)