BMetric is a lightweight VS Code extension that helps developers track how many lines have been changed in the current local Git branch. It displays added, removed, and total line changes directly in the VS Code status bar, keeping you aware of your work at a glance.
Features
✅ Shows total changed lines in the current branch
➕ Shows lines added and lines removed separately
⚠️ Alerts you when the number of changed lines exceeds a configurable maximum threshold (default: 400 lines)
🔄 Updates live whenever files are saved or modified
💡 Lightweight and non-intrusive
Status Bar Display
The plugin shows changes in the format: Total (+Added, -Removed)
Example:
If the total exceeds the configured maximum, the status bar will turn red and a warning balloon will appear.
Configuration
You can configure the maximum number of allowed changed lines before a warning is shown:
Setting
Type
Default
Description
bmetric.maxLinesChanged
number
400
Maximum number of changed lines before showing an alert
To update, go to Settings → Extensions → BMetric Plugin in VS Code.
Installation
Open VS Code Marketplace and search for BMetric
Click Install
Start coding and watch the status bar for live line change updates
Requirements
Git must be initialized in your project folder
VS Code version 1.80.0 or higher
Extension Settings
bmetric.maxLinesChanged – Set the threshold for line changes warning. Default is 400