Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>LGTM - AI Code ReviewNew to Visual Studio Code? Get it now.
LGTM - AI Code Review

LGTM - AI Code Review

Christian Pulvermacher

|
1,642 installs
| (1) | Free
Review source code changes in Git using GitHub Copilot Chat
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

LGTM - AI Code Review

Latest Release Installs Status License

Review source code changes in Git using GitHub Copilot Chat.

To start, open the Chat sidebar in Ask mode and send one of the following messages:

  • /review to review uncommitted changes, or changes between two branches, commits, or tags.
  • You can specify git refs using e.g. /review develop main, or omit the second or both arguments to select refs interactively.
  • /branch to review changes between two branches.
  • /commit to review changes in a single commit.

After selecting the changes to review, @lgtm will answer with review comments grouped by file, and sorted by severity.

Demo

Features

  • Uses Copilot Chat for reviewing changes, so only a GitHub Copilot subscription is required. Source code data is sent only to Copilot, which you presumably trust already.
  • Allows adding custom instructions via the Lgtm: Custom Prompt setting to e.g. change the language of review comments.
  • Allows choosing any language model available to VSCode via the LGTM: Select Chat Model command (accessible via the Command Palette - Cmd+Shift+P or Ctrl+Shift+P). By default, GPT-4o is used.
  • Review content remains in chat history, so you can ask follow-up questions to Copilot (without @lgtm).
  • Adds a review tool that can be used in agent mode (mention #review to encourage its use).

Limitations

  • Since this project is still work in progress, quality of comments may be mixed. This should improve in future versions.
  • For larger change sets you may encounter rate-limiting errors from Copilot. Please wait for the indicated time before retrying.

Data Usage

Source code checked into Git and selected for review and commit messages will be sent to GitHub Copilot. Avoid using it on repositories where you would not use Copilot.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft