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/concepts/code-review/code-review.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,6 +22,14 @@ This article provides an overview of {% data variables.copilot.copilot_code-revi
22
22
23
23
## Availability
24
24
25
+
{% data variables.copilot.copilot_code-review_short %} is supported in:
26
+
27
+
* {% data variables.product.prodname_dotcom_the_website %}
28
+
* {% data variables.product.prodname_mobile %}
29
+
* {% data variables.product.prodname_vscode_shortname %}
30
+
* {% data variables.product.prodname_vs %}
31
+
* Xcode
32
+
25
33
{% data variables.copilot.copilot_code-review_short %} is—with one exception—a premium feature, available with the {% data variables.copilot.copilot_pro_short %}, {% data variables.copilot.copilot_pro_plus_short %}, {% data variables.copilot.copilot_business_short %}, and {% data variables.copilot.copilot_enterprise_short %} plans.
26
34
27
35
The exception is the review of a selection of code within a file in {% data variables.product.prodname_vscode %}. This is a standard feature available to all {% data variables.product.prodname_copilot_short %} users in {% data variables.product.prodname_vscode_shortname %}.
Copy file name to clipboardExpand all lines: content/copilot/how-tos/use-chat/use-chat-in-ide.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -487,7 +487,7 @@ To share feedback about {% data variables.copilot.copilot_chat_short %}, you can
487
487
488
488
You can ask {% data variables.copilot.copilot_chat_short %} to give you code suggestions, explain code, generate unit tests, and suggest code fixes.
489
489
490
-
1. To open the chat view, click **Editor** in the menu bar, then click **{% octicon "copilot" aria-hidden="true" aria-label="copilot" %} {% data variables.product.prodname_copilot_short %}** then **Open Chat**. {% data variables.copilot.copilot_chat_short %} opens in a new window.
490
+
1. To open the chat view, click **Editor** in the menu bar, then click **{% data variables.product.prodname_copilot %}** then **Open Chat**. {% data variables.copilot.copilot_chat_short %} opens in a new window.
491
491
492
492
1. Enter a prompt in the prompt box. For example prompts, see [AUTOTITLE](/copilot/get-started/getting-started-with-prompts-for-copilot-chat).
Copy file name to clipboardExpand all lines: content/copilot/how-tos/use-copilot-agents/request-a-code-review/use-code-review.md
+34-9Lines changed: 34 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@ For a full introduction to {% data variables.copilot.copilot_code-review %}, see
28
28
29
29
## Using {% data variables.copilot.copilot_code-review_short %}
30
30
31
-
These instructions explain how to use {% data variables.copilot.copilot_code-review_short %} in the {% data variables.product.github %} website. To see instructions for other popular coding environments, use the tool switcher at the top of the page.
31
+
These instructions explain how to use {% data variables.copilot.copilot_code-review_short %} in the {% data variables.product.github %} website. To see instructions for other popular coding environments, click the appropriate tab at the top of the page.
32
32
33
33
1. On {% data variables.product.prodname_dotcom_the_website %}, create a pull request or navigate to an existing pull request.
34
34
1. Open the **Reviewers** menu, then select **{% data variables.product.prodname_copilot_short %}**.
@@ -89,12 +89,6 @@ By default, you manually request a review from {% data variables.product.prodnam
89
89
90
90
{% vscode %}
91
91
92
-
## Using {% data variables.copilot.copilot_code-review_short %}
93
-
94
-
These instructions explain how to use {% data variables.copilot.copilot_code-review_short %} in {% data variables.product.prodname_vscode %}. To see instructions for other popular coding environments, use the tool switcher at the top of the page.
95
-
96
-
> [!NOTE] {% data variables.copilot.copilot_code-review_short %} is available in {% data variables.product.prodname_vscode %} with version 0.22 or later of the {% data variables.copilot.copilot_chat %} extension.
97
-
98
92
### Reviewing a selection of code
99
93
100
94
You can request an initial review of a highlighted selection of code in {% data variables.product.prodname_vscode %}.
@@ -160,7 +154,7 @@ To use {% data variables.copilot.copilot_code-review_short %}, you must use {% d
160
154
161
155
## Using {% data variables.copilot.copilot_code-review_short %}
162
156
163
-
These instructions explain how to use {% data variables.copilot.copilot_code-review_short %} in {% data variables.product.prodname_vs %}. To see instructions for other popular coding environments, use the tool switcher at the top of the page.
157
+
These instructions explain how to use {% data variables.copilot.copilot_code-review_short %} in {% data variables.product.prodname_vs %}. To see instructions for other popular coding environments, click the appropriate tab at the top of the page.
164
158
165
159
1. In the Git Changes window, click **Review changes with {% data variables.product.prodname_copilot_short %}**.
166
160
This button appears as a comment icon with a sparkle.
@@ -182,7 +176,7 @@ For more information on enabling and configuring {% data variables.copilot.copil
182
176
183
177
## Using {% data variables.copilot.copilot_code-review_short %}
184
178
185
-
These instructions explain how to use {% data variables.copilot.copilot_code-review_short %} in {% data variables.product.prodname_mobile %}. To see instructions for other popular coding environments, use the tool switcher at the top of the page.
179
+
These instructions explain how to use {% data variables.copilot.copilot_code-review_short %} in {% data variables.product.prodname_mobile %}. To see instructions for other popular coding environments, click the appropriate tab at the top of the page.
186
180
187
181
1. In {% data variables.product.prodname_mobile %}, open a pull request.
188
182
1. Scroll down to the **Reviews** section and expand it.
@@ -192,3 +186,34 @@ These instructions explain how to use {% data variables.copilot.copilot_code-rev
192
186
{% data variables.product.prodname_copilot_short %} will review the changes and provide feedback.
193
187
194
188
{% endmobile %}
189
+
190
+
{% xcode %}
191
+
192
+
## Prerequisite
193
+
194
+
To use {% data variables.copilot.copilot_code-review_short %} in Xcode, you must use version 0.41.0 or later of the {% data variables.copilot.copilot_chat %} extension. Download the latest release from the [`github/CopilotForXcode` repository](https://github.com/github/CopilotForXcode/releases/latest).
195
+
196
+
## Using {% data variables.copilot.copilot_code-review_short %}
197
+
198
+
These instructions explain how to use {% data variables.copilot.copilot_code-review_short %} in Xcode. To see instructions for other popular coding environments, click the appropriate tab at the top of the page.
199
+
200
+
1. In Xcode, make some changes to one or more files.
201
+
1. Open the {% data variables.product.prodname_copilot_short %} chat window by clicking **Editor** in the menu bar, clicking **{% data variables.product.prodname_copilot %}** then **Open Chat**.
202
+
1. Near the bottom right of the prompt box in the {% data variables.product.prodname_copilot_short %} chat window, click the **Code Review** button (a speech bubble icon).
203
+
204
+

205
+
206
+
1. Click either **Review Staged Changes** or **Review Unstaged Changes**.
207
+
1. A list of files containing changes is displayed in the chat window. Click the check boxes to deselect any files you don't want {% data variables.product.prodname_copilot_short %} to review.
208
+
1. Click **Continue** to start the review process.
209
+
1. If {% data variables.product.prodname_copilot_short %} finds things to comment on, it displays a **Reviewed Changes** list in the chat window, listing the files it has commented on. Click a file in this list to see the comments.
210
+
211
+
Each comment is shown in a popup, overlaid over the editor.
212
+
213
+

214
+
215
+
1. If there is more than one comment in the file, use the up and down arrows, at the top right of the popup, to navigate between comments.
216
+
1. {% data variables.product.prodname_copilot_short %} may suggest replacement code. You can apply the suggested change by clicking **Accept** or reject it by clicking **Dismiss**.
217
+
1. Click another file in the **Reviewed Changes** list in the chat window, to see the review comments for another file.
Copy file name to clipboardExpand all lines: content/copilot/responsible-use/code-review.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,7 +41,7 @@ The language model generates a response based on its analysis of the input promp
41
41
42
42
### Output formatting
43
43
44
-
The response generated by {% data variables.product.prodname_copilot_short %} is presented to the user directly in {% data variables.product.prodname_vscode %} or as a pull request review on {% data variables.product.github %}, providing code feedback linked to specific lines of specific files.
44
+
The response generated by {% data variables.product.prodname_copilot_short %} is presented to the user either directly in the supported editor, or as a pull request review on {% data variables.product.github %}, providing code feedback linked to specific lines of specific files.
45
45
46
46
Where {% data variables.product.prodname_copilot_short %} has provided a code suggestion, the suggestion is presented as a suggested change, which can be applied with a couple of clicks.
0 commit comments