Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>VScode git diff AlertNew to Visual Studio Code? Get it now.
VScode git diff Alert

VScode git diff Alert

Ryota-Onuma

|
120 installs
| (0) | Free
When a file is saved, this extension runs git diff to keep your commit small.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode git-diff-alert

This is an extension for Visual Studio Code. This extension runs "git diff {baseBranch} --numstat" when a file is saved, and calculate the total number of added lines and deleted lines. In addition, you can run it manually by executing GitDiffAlert: run through your command palette. If the total is over threshold, this extention alerts like below.

You can configure some properties in your settings.json to use this extension.

// settings.json

{
    "gitDiffAlert.threshold": 100 ,// default is 100.
    "gitDiffAlert.baseBranch": "main" // default is main.
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft