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
