VS Code Extensions
C

CodeInKlingon Git Compare

by CodeInKlingon

Preview branch comparison diffs in the Source Control view.

Downloads

8

Rating

— (0)

Version

0.0.1

Last updated

Jul 10, 2026

Local VS Code extension that adds a Source Control panel for previewing branch comparison diffs.

The default base ref is origin/main, matching:

git diff origin/main...HEAD

Run Locally

npm install
npm run compile

Open this folder in VS Code, press F5, then open a Git repository in the Extension Development Host.

In the Source Control view, use the Branch Compare: origin/main panel. Click the branch button to pick a compare branch, click the refresh button to load the changed files, then click any file to open its diff.

You can also run Git: Compare Current Branch with Base Branch from the Command Palette or the Source Control title menu. That command refreshes the panel and focuses it.

Use Git: Pick Compare Branch from the Command Palette to change the base branch. The panel title updates to Branch Compare: <branch>.

Configuration

Set gitCompare.baseRef if your default branch is different:

{
  "gitCompare.baseRef": "origin/develop"
}

Related extensions