Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Diff NannyNew to Visual Studio Code? Get it now.
Diff Nanny

Diff Nanny

a-type

|
37 installs
| (0) | Free
Keep track of the git diff of working tree changes and warn at set thresholds. For people who open massive PRs too often.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Diff Nanny

Keeps a running tally of your git diff and lets you set warnings if you hit a threshold.

Good for people who keep submitting big PRs because they didn't realize they were a little too in the zone.

Features

  • Always shows a diff count in your status bar
  • The diff count turns yellow (or whatever your warning color is) when you hit a threshold you decide. Default is 1k changes.
  • Allows excluding files you don't care about, like package-lock.json, to reduce the noise.

Extension Settings

Include if your extension adds any VS Code settings through the contributes.configuration extension point.

For example:

This extension contributes the following settings:

  • diffNanny.excludes: A list of glob patterns for files to exclude from the diff totals.
  • diffNanny.baseBranch: Specify a branch to diff against. Defaults to main. Use "" to only track uncommitted changes.
  • diffNanny.maxDiffTotal: The warning threshold for total diff size (+ and -)
  • diffNanny.maxDiffInserts: The warning threshold for only inserts (+)
  • diffNanny.maxDiffRemovals: The warning threshold for only removals (-)

Release Notes

1.0.0

Initial functionality with excludes and threshold limits.

1.0.1

Allow specifying a base branch to diff against, default to main. Now changes are for the whole working branch, not just uncommitted files.

Also add some logging to diagnose Windows problems.

1.0.1

Fix a bug that made the status bar badge not show up.

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