December 15, 2025 — We're thrilled to announce the biggest update to Data Size Count yet! This major release brings powerful new features, a completely redesigned architecture, and an enhanced user experience.
✨ What's New in v4.0.0
🔍 Custom Regex Pattern Counting
Count anything in your code with powerful regex-based pattern matching. Track imports, exports, comments, TODOs, console logs, and more—all directly in your status bar!
{
"data-size-count.statusBar.regexCount": [
{
"title": "Imports",
"format": "$(cloud-download) ${matchCount} Imports",
"regex": "^\\s*import\\b.*$"
},
{
"title": "TODOs",
"format": "$(checklist) TODOs: ${matchCount}",
"regex": "TODO"
}
]
}
📊 Advanced Selection Analytics
Get deeper insights into your selections with brand new metrics:
Empty Line Count – Detect blank lines in selections
Duplicate Lines – Identify repeated lines (useful for cleanup)
Duplicate Words – Find repeated words in your text
Max Depth – Understand nesting levels in JSON/objects
Unique Data Count – Count unique items in arrays
🎯 Modular Status Bar Architecture
The status bar now uses intelligent, independent modules:
FileSizeItem – Always shows current file size
SelectionItem – Displays rich selection metrics when text is selected
RegexItem – Shows custom regex pattern matches
StatusbarManager – Orchestrates all items seamlessly
Each module can be independently customized and controlled.
📄 New Combined Details View
Click your status bar to see a beautifully formatted popup with:
📄 File information (path, size, language)
✂️ Selection details (all metrics in one place)
🔎 Regex match counts
🕘 Timestamp
📄 File Info
──────────────────────────────
• File: /path/to/file.ts
• Size: 2.5 KB
• Language: typescript
• Encoding: UTF-8
✂️ Selection
──────────────────────────────
• Selected Size: 234 bytes
• Lines: 10
• Words: 25
• Chars: 200
• Chars (no spaces): 180
• Empty Lines: 1
• Duplicate Lines: 2
• Duplicate Words: 3
• Data Type: Array
• Data Count: 15
• Unique Data Count: 12
• Max Depth: 3
🔎 Regex Matches
──────────────────────────────
• Imports: 5
• TODOs: 2
• Console Logs: 3
🎁 Enhanced Features
Better Format Variables
More control over how metrics are displayed:
${emptyLineCount}– Empty lines in selection${duplicateLinesCount}– Duplicate line count${duplicateWordsCount}– Duplicate word count${maxDepth}– Maximum nesting depth${uniqueDataCount}– Unique items in arrays${matchCount}– Regex pattern matches
Improved Defaults
Out-of-the-box better experience:
{
"data-size-count.statusBar.fileSizeFormat": "$(file-text) ${fileSize}",
"data-size-count.statusBar.selectedSizeFormat": "$(selection) ${selectedSize}",
"data-size-count.statusBar.selectionCountFormat": "${linesCount} : ${wordsCount} : ${charCount}",
"data-size-count.statusBar.dataCountFormat": "$(database) ${dataCountWithBrackets} / ${maxDepth}",
"data-size-count.statusBar.position": "Left",
"data-size-count.statusBar.priority": -1
}
Smart Separators
Control how metrics are separated with:
data-size-count.statusBar.selectionMetricsSeparator– Between selection metrics (default:" | ")data-size-count.statusBar.regexCountSeparator– Between regex counts (default:", ")
🔄 Breaking Changes
Visibility Setting Removed
The old visibility object setting has been removed. To hide metrics, simply set their format to an empty string:
{
"data-size-count.statusBar.fileSizeFormat": "", // Hide file size
"data-size-count.statusBar.selectedSizeFormat": "", // Hide selected size
"data-size-count.statusBar.selectionCountFormat": "${linesCount} : ${wordsCount}", // Show only lines & words
"data-size-count.statusBar.dataCountFormat": "" // Hide data count
}
Command Renamed
Old:
data-size-count.showFileDetailsNew:
data-size-count.showCombinedDetails
This command now opens the beautiful combined details popup.
📥 How to Upgrade
From the Marketplace
Open VS Code
Go to Extensions (Ctrl+Shift+X)
Search for "Data Size Count"
Click the Update button
Reload VS Code
Manual Update
Your existing settings will be preserved, but review the breaking changes above.
🎯 Popular Use Cases
For Web Developers
{
"data-size-count.statusBar.fileSizeFormat": "$(file-text) ${fileSize}",
"data-size-count.statusBar.selectionCountFormat": "$(pencil) ${linesCount}L | $(list) ${wordsCount}W | ${charCount}C",
"data-size-count.statusBar.dataCountFormat": "$(database) ${dataCountWithBrackets}",
"data-size-count.statusBar.regexCount": [
{
"title": "Imports",
"format": "$(cloud-download) ${matchCount} Imports",
"regex": "^\\s*import\\b.*$"
},
{
"title": "Components",
"format": "$(layers) ${matchCount} Components",
"regex": "export.*component",
"onlyOnSelection": false
}
]
}
For Data Engineers
{
"data-size-count.statusBar.fileSizeFormat": "$(file-text) ${fileSize}",
"data-size-count.statusBar.selectionCountFormat": "Rows: ${linesCount} | Cols: ${wordsCount}",
"data-size-count.statusBar.dataCountFormat": "$(database) ${dataCountWithBrackets} / Depth: ${maxDepth}",
"data-size-count.statusBar.regexCount": [
{
"title": "SQL Queries",
"format": "$(database) ${matchCount} Queries",
"regex": "SELECT|INSERT|UPDATE|DELETE"
}
]
}
For Content Writers
{
"data-size-count.statusBar.selectionCountFormat": "$(pencil) ${linesCount} lines | $(list) ${wordsCount} words",
"data-size-count.statusBar.dataCountFormat": ""
}
🐛 Bug Fixes
✅ Improved type definitions and settings validation
✅ Fixed file path casing consistency
✅ Enhanced JSON parsing with better error handling
✅ Optimized regex matching performance with debouncing
📚 Updated Documentation
The README has been completely revamped with:
✅ Clear feature descriptions
✅ Comprehensive configuration examples
✅ Troubleshooting section
✅ Quick start guides
✅ Custom regex patterns examples
👉 Read the full README for detailed configuration options
🌟 Why You'll Love v4.0.0
FeatureBenefitRegex CountingTrack any pattern in your codeModular DesignIndependent, customizable componentsRich AnalyticsDeeper insights with new metricsBetter UXCombined details popup with formattingFlexible DisplayFine-grained control over what showsPerformanceOptimized with debouncing and smart updates
🤝 Feedback & Support
We'd love to hear from you!
Report Issues: GitHub Issues
Request Features: GitHub Discussions
Buy Me Coffee: Support the Project
🎉 Thank You
A huge thanks to everyone who's used, suggested improvements, and supported Data Size Count. This release is built on your feedback!
Happy coding! 🚀
Version Info
Version: 4.0.0
Release Date: December 15, 2025
Minimum VS Code Version: 1.75.0
License: MIT
