- Kotlin 100%
File Stats: Status Bar Character, Line Count and File Size #
Real-Time Character Count, Line Count, Selection Metrics, and File Size for all JetBrains IDEs
💡 Why File Stats? #
By default, JetBrains IDEs only show your cursor's current line and column (e.g., 42:17). They do not show:
- Real-time character count for the entire file
- Live character & line count for active selections (including multi-caret)
- Total lines in the file and current position (
Ln 42/250) - File size on disk with auto-scaling (
4.2 KB) - Document metadata for non-code files (PDF pages, image resolution, video duration, spreadsheet sheets, etc.)
File Stats upgrades your status bar with live, clean, and customizable metrics that integrate seamlessly into the native IDE theme without vertical stretching, lag, or visual clutter.
✨ Key Features #
1. 📏 100% Pixel-Perfect Native Integration #
- Strict Height & Font Matching: Implements the official
StatusBarWidget.TextPresentationAPI wrapped in IntelliJ's nativeTextPanel. - Zero Bar Stretching: Enforces the native 20px compact height, 11pt font, and subtle hover pill matching native items like
UTF-8,LF, and Git branch indicators.
2. 🎛️ Full Customization (Settings | Tools | File Stats) #
Customize which metrics appear and choose your preferred style variation:
- Character Count:
12,450 chars(Standard),12,450 ch,12,450,12.5k chars, orChars: 12,450. - Line Count:
Ln 42/250(Standard),42/250,Line 42 of 250,L: 42/250,42:250, or42 (total 250). - File Size:
4.2 KB(Standard auto-scaled),Size: 4.2 KB,(4.2 KB), or4.2K. - Text Selection:
Sel: 4 lines, 120 chars(Standard),4L, 120c,[4 lines, 120 chars], orSelected: 4L / 120 chars. - Separators: Middle dot (
·), Pipe (|), Bullet (•), Slash (/), Spaces, or Dash. - Live Interactive Preview: Test and preview styling variations in real time directly inside the Settings dialog.
3. ⚡ High Performance & Low Overhead #
- Debounced Event Processing: Status bar updates are batched (75ms debounce) so typing and caret navigation remain silky smooth without lag.
- Non-Blocking Background Analysis: Disk reads and metadata extractions (PDF, images, video, Office documents, archives) run on background threads and never block the UI thread.
- Smart Event Filtering: Only reacts when the active file or document changes, ignoring background file activity (git checkout, indexing, build output).
4. 🖱️ Native Upward Popup Menu & Clipboard Export #
Clicking on the status bar widget (left-click or right-click) opens a native JetBrains popup menu:
- ⚙️ Settings...: Opens
Settings | Tools | File Statsdirectly. - 📊 View Detailed Statistics...: Opens a comprehensive breakdown dialog showing character count, non-whitespace characters, line endings (
LF/CRLF), encoding, and metadata. - 📋 Copy Statistics as Markdown: Copies a formatted Markdown table to your clipboard for Pull Requests and code reviews.
- 📄 Copy Statistics as Plain Text: Copies plain text metrics to your clipboard for Slack, Jira, or notes.
5. 🚫 Zero Clutter: Automatic Hiding #
Unsupported binary files (.exe, .dll, .class, .pyc, .bin, .db) and directory folders automatically collapse to 0-width. The widget is completely hidden from the status bar when viewing unsupported files.
📊 Supported File Formats #
| Category | File Extensions | Extracted Metrics |
|---|---|---|
| Source Code & Scripts | .py, .java, .ts, .js, .cpp, .c, .rs, .go, .cs, .php, .rb, .html, .css, .json, .yaml, .sql, .sh, .md, .txt |
Total characters, current & total lines, live selection lines/chars, file size |
| Tabular Data | .csv, .tsv, .tab, .psv |
Delimiter (Comma, Tab, Semicolon, Pipe), total rows, column count, header detection |
| Jupyter Notebooks | .ipynb |
Total cell count, code cells vs. markdown cells, file size |
| PDF Documents | .pdf |
Exact page count, PDF version (PDF: 15 pages · 2.4 MB) |
| Word Documents | .docx, .doc, .dotx |
Page count, word count, paragraph count, character count |
| Excel Spreadsheets | .xlsx, .xls, .xlsm, .xltx |
Sheet count, sheet names, primary row & column count |
| PowerPoint | .pptx, .ppsx, .ppt |
Slide count (PPT: 24 slides · 5.1 MB) |
| Images | .png, .jpg, .jpeg, .gif, .webp, .svg, .bmp, .ico, .tiff, .avif |
Pixel dimensions ($W \times H$), aspect ratio, format, megapixels |
| Videos | .mp4, .mov, .m4v, .mkv, .webm, .avi, .flv, .wmv |
Resolution, duration (HH:MM:SS), format, file size |
| Audio | .mp3, .wav, .ogg, .flac, .aac, .m4a, .wma, .aiff |
Sample rate (kHz), bitrate (kbps), channels, duration |
| Archives | .zip, .jar, .war, .ear, .tar, .gz, .tgz, .7z, .rar, .bz2, .xz |
Packed entry count, compression ratio, file size |
🚀 Supported JetBrains IDEs #
Compatible with all IDEs built on the IntelliJ Platform (version 2022.3 and newer):
- 🐍 PyCharm (Community & Professional)
- ☕ IntelliJ IDEA (Community & Ultimate)
- 🌐 WebStorm
- ⚙️ CLion
- 🐹 GoLand
- 🐘 PhpStorm
- 🎯 Rider
- 💎 RubyMine
- 💾 DataGrip
- 🔬 DataSpell
- 🤖 Android Studio
- 🦀 RustRover
📥 Installation #
From JetBrains Marketplace #
- Open your JetBrains IDE.
- Go to Settings / Preferences (
Ctrl+Alt+SorCmd+,) → Plugins. - In the Marketplace tab, search for
File Stats. - Click Install. No IDE restart required.
From Disk (Offline / Manual) #
- Download
File-Stats-1.1.0.zip. - Go to Settings → Plugins → click the ⚙ (gear icon) → Install Plugin from Disk....
- Select
File-Stats-1.1.0.zip.
⌨️ Access & Shortcuts #
- Status Bar Click: Left-click or right-click the widget anytime to open the popup menu.
- View Menu: Go to View → Show Detailed File Statistics.
- Find Action: Press
Ctrl+Shift+A(orCmd+Shift+Aon macOS) and typeShow Detailed File Statistics. - Custom Shortcut: You can bind any preferred keyboard shortcut in Settings → Keymap by searching for
Show Detailed File Statistics.
🤖 Frequently Asked Questions (FAQ) #
How do I see total character count in PyCharm or IntelliJ? #
By default, JetBrains IDEs only show line and column coordinates (42:17). Install File Stats: Status Bar Character, Line Count and File Size from the JetBrains Marketplace. It automatically displays live total character count and selected character count in the status bar as you type.
How to display total lines instead of just line numbers in PyCharm? #
File Stats adds the Ln [Current]/[Total] format (e.g. Ln 42/250) to your status bar. You can also customize it to 42/250, Line 42 of 250, or 42:250 in Settings | Tools | File Stats.
Does this plugin support multi-caret selection? #
Yes! When using multiple cursors or multiple selections, File Stats sums the total characters and lines across all active carets in real time.
Will this plugin slow down typing in large files? #
No. All status bar updates are debounced (75ms delay), expensive full-document counts are cached per modification stamp, and disk-heavy file analysis (PDF, media, spreadsheets) runs completely off the UI thread.
📬 Support & Feedback #
Need help, found a bug, or want to suggest a new feature?
- Email Support: contact@darshan-bharat.com