Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>CodeInKlingon Git CompareNew to Visual Studio Code? Get it now.
CodeInKlingon Git Compare

CodeInKlingon Git Compare

Daniel Stokes

|
2 installs
| (0) | Free
Preview branch comparison diffs in the Source Control view.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CodeInKlingon Git Compare

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"
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft