Skip to content
| Marketplace
Sign in
Visual Studio Code>SCM Providers>Branch Diff StatsNew to Visual Studio Code? Get it now.
Branch Diff Stats

Branch Diff Stats

Abhay Bisht

| (0) | Free
Shows the lines added and deleted on your branch (+12 −3) in the status bar, compared with the PR base or the default branch.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Branch Diff Stats

See how big your branch is at a glance. Branch Diff Stats puts the lines you've added and deleted in the VS Code status bar:

Branch Diff Stats in the VS Code status bar

It fits in with any theme:

Status bar item in a light theme Status bar item in a dark theme

What it counts

  • Every change on your branch since it left its base: committed, staged and unstaged.
  • Base: the pull request's target branch if the branch has an open PR (needs the GitHub CLI, gh, signed in), otherwise the repo's default branch (origin/HEAD, then origin/main / origin/master).
  • New files that git isn't tracking yet are not counted until you git add them.

Hover the item to see the branch, the base and the PR number. Click it to open Source Control.

Tooltip with the branch and its base

When it updates

On save, commit, stage, branch switch, when you switch editors or come back to the window, and every 30 seconds. In a multi-root workspace it follows the repo of the file you're editing.

Settings

Setting Default What it does
branchDiffStats.icon git-compare Codicon shown before the counts, e.g. diff, git-pull-request, source-control.

Commands

  • Branch Diff Stats: Refresh re-checks the branch's base and counts again, for example right after you open a PR.

Works with

Local folders, WSL, SSH and Dev Containers: the extension runs where your repo is.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft