Skip to content

Commit d41f894

Browse files
authored
Correct and clarify information about code review in VS Code (#58273)
1 parent 9aea356 commit d41f894

File tree

5 files changed

+7
-24
lines changed

5 files changed

+7
-24
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ redirect_from:
1212
- /copilot/concepts/code-review/code-review
1313
- /copilot/concepts/code-review
1414
contentType: concepts
15-
category:
15+
category:
1616
- Learn about Copilot
1717
---
1818

@@ -69,7 +69,7 @@ If you receive {% data variables.product.prodname_copilot_short %} from an organ
6969

7070
## Code review monthly quota
7171

72-
Each time {% data variables.product.prodname_copilot_short %} reviews a pull request, or reviews files in your IDE that contain changes, your monthly quota of Copilot premium requests is reduced by one. Code review for currently selected text in {% data variables.product.prodname_vscode_shortname %} does not consume a premium request. For information about premium requests, see [AUTOTITLE](/copilot/managing-copilot/monitoring-usage-and-entitlements/about-premium-requests).
72+
Each time {% data variables.product.prodname_copilot_short %} reviews a pull request, or reviews files in your IDE that contain uncommitted changes, your monthly quota of Copilot premium requests is reduced by one. Code review for currently selected text in {% data variables.product.prodname_vscode_shortname %} does not consume a premium request. For information about premium requests, see [AUTOTITLE](/copilot/managing-copilot/monitoring-usage-and-entitlements/about-premium-requests).
7373

7474
If a repository is configured to automatically request a code review from {% data variables.product.prodname_copilot_short %} for all new pull requests, the premium request usage is applied to the quota of the pull request author. If a pull request is created by {% data variables.product.prodname_actions %} or by a bot, the usage will apply to the user who triggered the workflow (if identifiable), or to a designated billing owner.
7575

content/copilot/concepts/billing/copilot-requests.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ The following {% data variables.product.prodname_copilot_short %} features can u
3939

4040
| Feature | Premium request consumption | SKU Attribution |
4141
| ------- | ----------- | ----------- |
42-
| [Agent mode in {% data variables.copilot.copilot_chat_short %}](/copilot/using-github-copilot/copilot-chat/asking-github-copilot-questions-in-your-ide#copilot-edits) | Agent mode uses **one premium request** per user prompt, multiplied by the model's rate. | {% data variables.product.prodname_copilot_short %} premium requests |
43-
| [{% data variables.copilot.copilot_chat_short %}](/copilot/using-github-copilot/copilot-chat) | {% data variables.copilot.copilot_chat_short %} uses **one premium request** per user prompt, multiplied by the model's rate. | {% data variables.product.prodname_copilot_short %} premium requests |
42+
| [{% data variables.copilot.copilot_chat_short %}](/copilot/using-github-copilot/copilot-chat) | {% data variables.copilot.copilot_chat_short %} uses **one premium request** per user prompt, multiplied by the model's rate. This includes edit, agent, and plan modes in {% data variables.copilot.copilot_chat_short %} in an IDE. | {% data variables.product.prodname_copilot_short %} premium requests |
4443
| [{% data variables.copilot.copilot_cli_short %}](/copilot/concepts/agents/about-copilot-cli) | Each prompt to {% data variables.copilot.copilot_cli_short %} uses **one premium request** with the default model. For other models, this is multiplied by the model's rate. | {% data variables.product.prodname_copilot_short %} premium requests |
4544
| [{% data variables.product.prodname_copilot_short %} code review](/copilot/using-github-copilot/code-review/using-copilot-code-review) | When you assign {% data variables.product.prodname_copilot_short %} as a reviewer for a pull request, **one premium request** is used each time {% data variables.product.prodname_copilot_short %} posts comments to the pull request. | {% data variables.product.prodname_copilot_short %} premium requests |
4645
| [{% data variables.copilot.copilot_coding_agent %}](/copilot/concepts/about-copilot-coding-agent) | {% data variables.copilot.copilot_coding_agent %} uses **one premium request** per session, plus **one premium request** for each real-time steering comment made during an active session. A session begins when you ask {% data variables.product.prodname_copilot_short %} to create a pull request or make one or more changes to an existing pull request. | {% data variables.copilot.copilot_coding_agent %} premium requests |

content/copilot/how-tos/configure-custom-instructions/add-repository-instructions.md

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ redirect_from:
1313
- /copilot/how-tos/custom-instructions/adding-repository-custom-instructions-for-github-copilot
1414
- /copilot/how-tos/custom-instructions/add-repository-instructions
1515
- /copilot/how-tos/use-copilot-agents/request-a-code-review/configure-coding-guidelines
16-
category:
16+
category:
1717
- Configure Copilot
1818
---
1919

@@ -266,9 +266,6 @@ Once saved, these instructions will apply to the current project in Eclipse that
266266
267267
## Creating repository-wide custom instructions
268268

269-
> [!NOTE]
270-
> {% data reusables.copilot.custom-instructions-ccr-support %} See [AUTOTITLE](/copilot/how-tos/use-copilot-agents/request-a-code-review/use-code-review?tool=vscode).
271-
272269
1. In the root of your repository, create a file named `.github/copilot-instructions.md`.
273270

274271
Create the `.github` directory if it does not already exist.

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

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ redirect_from:
1616
- /copilot/how-tos/agents/copilot-code-review/use-code-review
1717
- /copilot/how-tos/agents/request-a-code-review/use-code-review
1818
contentType: how-tos
19-
category:
19+
category:
2020
- Author and optimize with Copilot
2121
---
2222

@@ -97,17 +97,8 @@ By default, you manually request a review from {% data variables.product.prodnam
9797
You can request an initial review of a highlighted selection of code in {% data variables.product.prodname_vscode %}.
9898

9999
1. In {% data variables.product.prodname_vscode %}, select the code you want to review.
100-
1. Open the {% data variables.product.prodname_vscode_command_palette_shortname %}
101-
* For Mac:
102-
* Use: <kbd>Shift</kbd>+<kbd>Command</kbd>+<kbd>P</kbd>
103-
* For Windows or Linux:
104-
* Use <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd>
105-
1. In the command palette, search for and select **{% data variables.product.prodname_copilot %}: Review and Comment**.
106-
107-
![Screenshot of the command palette in {% data variables.product.prodname_vscode %} with the **{% data variables.product.prodname_copilot %}: Review and Comment** command selected.](/assets/images/help/copilot/vsc-review-and-comment.png)
108-
109-
1. Wait for {% data variables.product.prodname_copilot_short %} to review your changes. This usually takes less than 30 seconds.
110-
1. If {% data variables.product.prodname_copilot_short %} has any comments, they will be shown inline in your file, and in the **Problems** tab.
100+
1. Right-click the selected code and choose **Generate Code** > **Review**.
101+
1. {% data variables.product.prodname_vscode_shortname %} creates review comments in the **Comments** panel and also shows them inline in the editor.
111102

112103
### Reviewing all uncommitted changes
113104

@@ -141,9 +132,6 @@ To provide feedback, hover over the comment and click the thumbs up or thumbs do
141132

142133
## Customizing {% data variables.product.prodname_copilot_short %}'s reviews with custom instructions
143134

144-
> [!NOTE]
145-
> {% data reusables.copilot.custom-instructions-ccr-support %}
146-
147135
{% data reusables.copilot.code-review.custom-instructions-information %}
148136

149137
{% endvscode %}

data/reusables/copilot/custom-instructions-ccr-support.md

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)