πŸš€ Data Size Count v4.0.0 - The Ultimate ...

πŸš€ Data Size Count v4.0.0 - The Ultimate Release!

Dec 15, 2025

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.showFileDetails

  • New: data-size-count.showCombinedDetails

This command now opens the beautiful combined details popup.


πŸ“₯ How to Upgrade

From the Marketplace

  1. Open VS Code

  2. Go to Extensions (Ctrl+Shift+X)

  3. Search for "Data Size Count"

  4. Click the Update button

  5. 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!


πŸŽ‰ 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

View Full Changelog | Marketplace Link

GefΓ€llt dir dieser Beitrag?

Kaufe Sivaraman einen Kaffee

Mehr von Sivaraman