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
Copy file name to clipboardExpand all lines: content/copilot/how-tos/get-code-suggestions/get-ide-code-suggestions.md
+13-8Lines changed: 13 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -201,9 +201,7 @@ Alternatively, you can show alternate suggestions by pressing <kbd>Alt</kbd>+<kb
201
201
202
202
## Getting comment suggestions
203
203
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.
207
205
208
206
{% 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.
209
207
@@ -220,16 +218,23 @@ To enable comment suggestions, you need to configure the comment style in {% dat
220
218
221
219
1. In {% data variables.product.prodname_vs %}, in the **Tools** menu, click **Options**.
222
220
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**.
224
223
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**.
226
228
227
229
#### For C#
228
230
229
231
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**.
0 commit comments