Skip to content

Commit 0c17e03

Browse files
committed
Various updates
1 parent 2022017 commit 0c17e03

File tree

6 files changed

+65
-27
lines changed

6 files changed

+65
-27
lines changed

docs/guides/about-vscode.md

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
2-
title: VSCode extension overview
2+
title: Review local changes
33
description: How to review your code with the VSCode extension.
4+
slug: /code-editors
5+
sidebar_label: Overview
46
---
57

68
This page is about the CodeRabbit VSCode extension. For a broader overview of CodeRabbit, see [Introduction](/overview/introduction).
@@ -9,26 +11,24 @@ This page is about the CodeRabbit VSCode extension. For a broader overview of Co
911

1012
The CodeRabbit VSCode extension lets you apply a limited subset of CodeRabbit’s code-review features to your local development environment, directly from the VSCode IDE.
1113

14+
You can use the extension on its own, or you can use it to complement your local development on a repository whose remote has CodeRabbit installed.
15+
1216
The extension is intended to let you use the power of CodeRabbit to rapidly tune and tidy your code changes locally, before you publish your changes to your team's remote repository and start a more thorough code review.
1317

1418
## Features
1519

1620
The extension includes the following features:
1721

18-
- Automatic reviews of local Git commmits
19-
20-
- Manually requested reviews of local code changes, either committed or uncommited
22+
- Automatic code reviews on every local Git commit
23+
- Manually requested reviews of local code changes
2124

2225
## Price and limitations
2326

24-
This extension is free to install and use, and works with any tier of CodeRabbit account. Rate limits apply to the numnber of local reviews that you can request per hour.
27+
This extension is free to install and use, and works with any tier of CodeRabbit account. Rate limits apply to the number of local reviews that you can request per hour.
2528

26-
You can use the extension on its own, or you can use it to complement your local development on a repository whose remote has CodeRabbit installed.
27-
28-
As such, the extension makes only the most basic CodeRabbit review features available, with default settings applied. Advanced CodeRabbit features, such as interactive chat and project learnings, aren't available through the VSCode extension. These features are available only by [integrating CodeRabbit on your remote repository](/platforms), and then allowing CodeRabbit to review pull requests.
29+
The extension makes only basic CodeRabbit review features available, with default settings applied. Advanced CodeRabbit features, such as interactive chat and project learnings, aren't available through the VSCode extension. These features are available only by [integrating CodeRabbit on your remote repository](/platforms), and then allowing CodeRabbit to review pull requests.
2930

3031
## What's next
3132

32-
- [Install the VSCode extension](/guides/install-extension)
33-
34-
- [Use the VSCode extension](/guides/use-extension)
33+
- [Install the VSCode extension](/guides/install-vscode)
34+
- [Use the VSCode extension](/guides/use-vscode)

docs/guides/install-vscode.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ description: How to install the CodeRabbit VSCode extension
44
---
55

66
This page is about installing the CodeRabbit VSCode extension. For more information about the extension, see
7-
[Overview](/guides/about-vscode).
7+
[Review local changes](/code-editors).
88

99
## Before you begin
1010

@@ -36,7 +36,7 @@ To install the CodeRabbit VSCode extension, follow these steps:
3636

3737
1. In your web browser, log into your CodeRabbit account.
3838

39-
This connects your CodeRabbit account with the CodeRabit VSCode extension.
39+
This connects your CodeRabbit account with the CodeRabbit VSCode extension.
4040

4141
## What's next
4242

docs/guides/uninstall-vscode.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
---
22
title: Uninstall the VSCode extension
3-
description: How to uinstall the CodeRabbit VSCode extension
3+
description: How to uninstall the CodeRabbit VSCode extension
44
---
55

66
This page is about uninstalling the CodeRabbit VSCode extension. For more information about the extension, see
7-
[Overview](/guides/about-vscode).
7+
[Review local changes](/code-editors).
88

99
## Uninstall the extension
1010

docs/guides/use-vscode.md

+47-9
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ title: Use the VSCode extension
33
description: How to review your code with the VSCode extension.
44
---
55

6-
This page is about using the CodeRabbit VSCode extension. For more information about the extension, see
7-
[Overview](/guides/about-vscode). To learn how to install the extension, see [Install the VSCode extension](/guides/install-vscode).
6+
This page is about performing local code reviews using the CodeRabbit VSCode extension. For more information about the extension, see
7+
[Review local changes](/code-editors). To learn how to install the extension, see [Install the VSCode extension](/guides/install-vscode).
8+
9+
The CodeRabbit VSCode extension works by comparing changes in your current, checked-out Git branch against another branch in your local repository. You can use the extension to automatically perform full-branch changes after every commit, or make different kinds of comparisons by manually requesting a review.
810

911
## Automatically review local commits
1012

@@ -18,6 +20,8 @@ To perform an automatic review, follow these steps:
1820

1921
1. Wait for the review to complete. This might take several minutes. To cancel a review in progress, click **Stop the review**.
2022

23+
After the review completes, you can browse and respond to review comments as described in [Work with code reviews](#work-with-code-reviews).
24+
2125
For more options and control of code reviews performed using the CodeRabbit VSCode extension, you can manually request a review, as detailed in the following section.
2226

2327
## Manually request code reviews
@@ -26,10 +30,10 @@ To manually review changes in a local Git branch using the CodeRabbit VSCode ext
2630

2731
1. Click the CodeRabbit icon in the VSCode activity bar. The CodeRabbit sidebar appears.
2832

29-
1. Refer to **Branch** in the CodeRabbit sidebar. If you want to compare your code changes
30-
to a branch other than the default that appears, then follow these steps:
33+
1. If you want to compare your code changes
34+
to a branch other than its base branch, then follow these steps:
3135

32-
1. Click the name of the base branch, which is `main` by default. A **Select a base branch** dialog appears, listing other branches in your local Git repository.
36+
1. In the sidebar, under **Branch**, click the name of the base branch. A **Select a base branch** dialog appears, listing other branches in your local Git repository.
3337

3438
1. Select the name of a base branch to compare against.
3539

@@ -38,16 +42,50 @@ To manually review changes in a local Git branch using the CodeRabbit VSCode ext
3842
- To review all changes between the base branch and your current branch, including
3943
both committed and uncommitted changes, select **Review all changes**. This is the default selection.
4044

41-
- To limit the review to only changes on your branch that you have committed, select **Review committed changes**. This includes both pushed and not-pushed commits on the current branch.
45+
- To limit the review to only changes on your branch that you have committed, select **Review committed changes**. This includes commits that you have pushed to your remote repository, if any, as well as any local commits.
4246

43-
- To limit the review to only uncommitted changes on your branch, select **Review all changes**.
47+
- To limit the review to only uncommitted changes on your branch, select **Review uncommitted changes**.
4448

45-
1. Refer to the list of **Files to review** in the sidebar. This list represents all of the files that the selected review style includes. To change this list of files, repeat the previous step to choose a different review style, or use Git features like `git stash` to remove changes to files.
49+
1. Refer to the list of **Files to review** in the sidebar. This list represents all of the files that the selected review action includes. To change this list of files, repeat the previous step to choose a different review action, or use Git features like `git stash` to selectively remove changes.
4650

4751
1. To perform the review, click the button part of the menu. The CodeRabbit sidebar displays a **Review** section with the review's progress.
4852

4953
1. Wait for the review to complete. This might take several minutes. To cancel a review in progress, click **Stop the review**.
5054

55+
After the review completes, you can browse and respond to review comments as described in the following section.
56+
57+
## Work with code reviews
58+
59+
The CodeRabbit VSCode extension presents code reviews as a series of actionable comments, connected to specific files and lines. It gives you tools to apply its suggestions quickly, when possible.
60+
61+
### Browse comments
62+
63+
After the extension finishes its review, it adds any comments to the CodeRabbit sidebar under the **Files** heading in the **Reviews** section.
64+
65+
Each item in **Files** is a comment referring to one or more lines in that file. Click the comment to see a detailed, inline comment in the editor, attached to the appropriate file and lines.
66+
67+
You can react to these comments however you want: you can apply their advice literally, or let them guide you to find alternate solutions, or ignore them entirely. CodeRabbit comments are metadata stored with VSCode, and are not part of your files. The presence of comments doesn't block your use of version control.
68+
69+
### Apply suggested changes
70+
71+
Whenever possible, the CodeRabbit VSCode extension attaches discrete change suggestion to comments in the form of code diffs. For example, if it detects a typo in a new function name, the extension might attach a diff with a suggested correction.
72+
73+
If you agree with CodeRabbit about the suggested fix and want to apply to exactly as it proposes, click the checkmark-shaped **Apply suggested change** icon in the inline comment. The extension makes the change for you in the editor.
74+
75+
### Ignore or collapse comments
76+
77+
To remove a comment from the editor, click its **Ignore** icon.
78+
79+
To remove a comment but keep an icon in the editor noting its presence, click its **Collapse** icon.
80+
81+
To see an ignored or collapsed comment in the editor again, click its summary in the CodeRabbit sidebar.
82+
83+
### Browse previous reviews
84+
85+
If you have performed reviews prior to the most recent review in the current VSCode window, then you can browse the comments from these reviews under the **Previous reviews** heading in the CodeRabbit sidebar.
86+
87+
If a past review comment no longer applies to the current state of your code, then clicking that comment won't display a detailed comment or suggestion in the editor.
88+
5189
## What's next
5290

53-
- [Uninstall the VSCode extension](/guides/install-extension)
91+
- [Uninstall the VSCode extension](/guides/uninstall-vscode)

docs/overview/introduction.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,12 @@ For private repositories, a number of pricing tiers are available. These range f
9898

9999
As a separate, free product, CodeRabbit offers a VSCode extension that brings a subset of core CodeRabbit features to VSCode. This lets you use the power of CodeRabbit to tune and tidy your code changes locally before pushing your changes into a formal pull request for more thorough reviews.
100100

101-
For more information, see [About the VSCode extension](/guides/about-vscode).
101+
For more information, see [Review local changes](/code-editors).
102102

103103
## What's next
104104

105105
- [Quickstart](/getting-started/quickstart/) lets you experience your first CodeRabbit code review first-hand.
106106

107-
- [About the VSCode extension] guides you through installing and using a subset of CodeRabbit features directly from your code editor.
107+
- [Review local changes](/code-editors) guides you through installing and using a subset of CodeRabbit features directly from your code editor.
108108

109109
- [Why CodeRabbit?](/overview/why-coderabbit) dives further into the philosophies and technologies that drive CodeRabbit.

sidebars.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const sidebars: SidebarsConfig = {
111111
{
112112
type: "category",
113113
collapsed: false,
114-
label: "Review local changes using the VSCode extension",
114+
label: "Review local changes",
115115
items: [
116116
"guides/about-vscode",
117117
"guides/install-vscode",

0 commit comments

Comments
 (0)