Skip to content

Commit 33d9579

Browse files
authored
Add details for Xcode CCR support (#57327)
1 parent 3fbee17 commit 33d9579

File tree

6 files changed

+44
-11
lines changed

6 files changed

+44
-11
lines changed
76.7 KB
Loading
669 KB
Loading

content/copilot/concepts/code-review/code-review.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ This article provides an overview of {% data variables.copilot.copilot_code-revi
2222

2323
## Availability
2424

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+
2533
{% 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.
2634

2735
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 %}.

content/copilot/how-tos/use-chat/use-chat-in-ide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@ To share feedback about {% data variables.copilot.copilot_chat_short %}, you can
487487

488488
You can ask {% data variables.copilot.copilot_chat_short %} to give you code suggestions, explain code, generate unit tests, and suggest code fixes.
489489

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.
491491

492492
1. Enter a prompt in the prompt box. For example prompts, see [AUTOTITLE](/copilot/get-started/getting-started-with-prompts-for-copilot-chat).
493493

content/copilot/how-tos/use-copilot-agents/request-a-code-review/use-code-review.md

Lines changed: 34 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ For a full introduction to {% data variables.copilot.copilot_code-review %}, see
2828

2929
## Using {% data variables.copilot.copilot_code-review_short %}
3030

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.
3232

3333
1. On {% data variables.product.prodname_dotcom_the_website %}, create a pull request or navigate to an existing pull request.
3434
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
8989

9090
{% vscode %}
9191

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-
9892
### Reviewing a selection of code
9993

10094
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
160154

161155
## Using {% data variables.copilot.copilot_code-review_short %}
162156

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.
164158

165159
1. In the Git Changes window, click **Review changes with {% data variables.product.prodname_copilot_short %}**.
166160
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
182176

183177
## Using {% data variables.copilot.copilot_code-review_short %}
184178

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.
186180

187181
1. In {% data variables.product.prodname_mobile %}, open a pull request.
188182
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
192186
{% data variables.product.prodname_copilot_short %} will review the changes and provide feedback.
193187

194188
{% 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+
![Screenshot of the {% data variables.product.prodname_copilot_short %} chat window in Xcode, with the 'Code Review' button outlined in dark orange.](/assets/images/help/copilot/code-review/xcode-ccr-button.png)
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+
![Screenshot of a {% data variables.copilot.copilot_code-review_short %} review comment.](/assets/images/help/copilot/code-review/xcode-review-popup.png)
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.
218+
219+
{% endxcode %}

content/copilot/responsible-use/code-review.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ The language model generates a response based on its analysis of the input promp
4141

4242
### Output formatting
4343

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.
4545

4646
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.
4747

0 commit comments

Comments
 (0)