Use the VSCode extension
This page is about performing local code reviews using the CodeRabbit VSCode extension. For more information about the extension, see Review local changes. To learn how to install the extension, see Install the VSCode extension.
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.
The instructions on this page are specific to using the extension with VSCode. If you are instead using a VSCode-compatible editor such as Cursor or Windsurf, then the steps that you need to follow are similar, but might require some adaptation.
Automatically review local commits
You can let CodeRabbit automatically review commits that you make to your local Git repository. These automatic reviews compare all committed changes against the branch that your working branch is based on.
To perform an automatic review, follow these steps:
-
Perform a Git commit using VSCode. After you do this, a dialog appears in your VSCode window, asking Would you like to start a review?
-
Click Yes. The CodeRabbit sidebar appears in your VSCode window.
-
Wait for the review to complete. This might take a few minutes. To cancel a review in progress, click Stop the review.
After the review completes, you can browse and respond to review comments as described in Work with code reviews.
You can optionally configure the extension to either always or never perform automatic code reviews on commit, instead of displaying this yes-or-no dialog. For more information, see Configure automatic review behavior.
For more control of code reviews performed using the CodeRabbit VSCode extension, you can manually request a review, as detailed in the following section.