Instantly visualize the size of your files directly in the VS Code Explorer.
VSLineCounter adds a subtle, non-intrusive line count badge to your file explorer icons. Identify massive files, empty modules, and complex logic at a glance without ever opening the file.
(Above: Line counts updating in real-time as files are saved)
✨ Features
Native Integration: Uses VS Code's native File Decoration API for a seamless look.
Performance First: Zero lag. Line counts are calculated efficiently and only when needed.
Smart Formatting: Large numbers are abbreviated (e.g., 1200 becomes 1.2k) to keep your interface clean.
Real-time Updates: Badges update instantly when you save a file.
🚀 How to Use
Install the extension.
Open any folder or workspace.
The line count will automatically appear to the right of supported file types in the Explorer.
⚙️ Extension Settings
VSLineCounter is designed to work out of the box, but you can customize it to fit your workflow:
Setting
Default
Description
vsLineCounter.enable
true
Enable/Disable the line count badges globally.
vsLineCounter.badgeColor
charts.blue
Change the color of the badge (uses Theme Colors).
vsLineCounter.ignorePatterns
["dist", "node_modules", ".git"]
Array of folder names to ignore for performance.
🔧 Known Issues
Files larger than 50MB are skipped by default to preserve performance.
Line counts may not appear immediately for folder structures with over 10,000 files until explicitly expanded.
📅 Release Notes
1.0.0
Initial release of VSLineCounter.
Added support for .js, .ts, .py, and .css files.
Implemented k formatting for numbers over 1000.
☕ Support
If you find my projects useful or want to support my work: