Line count and file size tooltips for the VS Code Explorer.
otak-filemeter adds lightweight Explorer decorations so you can inspect file metrics without opening files.
VS Code's built-in Explorer does not expose a public API for adding arbitrary table columns. otak-filemeter uses the supported decoration API instead: each file gets a compact badge, and exact details are available from the hover tooltip.
Capabilities
Metrics tooltip: hover the decoration to see line count and file size.
Small marker badge: uses a compact i badge because VS Code decoration tooltips need a decoration target.
Bounded line counting: line counts are calculated only for files under the configured byte limit.
Local only: no telemetry, no network calls, and no workspace writes.
Settings
Setting
Default
Description
otakFilemeter.enabled
true
Enables Explorer file metric badges.
otakFilemeter.maxLineCountBytes
1048576
Maximum file size read for line counting in tooltips. Set to 0 to disable line counting.
Commands
Command
Description
otak-filemeter: Refresh File Meter Badges
Clears cached metrics and asks VS Code to refresh Explorer decorations.
Notes
Explorer decoration badges are intentionally kept to a short i marker. Hover the marker to see:
npm install
npm run package
code --install-extension otak-filemeter-0.1.8.vsix
Reload VS Code afterwards if the Explorer was already open.
Troubleshooting
Badges do not appear after installing the VSIX: run Developer: Reload Window once. Version 0.1.3 activates immediately, but a reload is still the fastest way to refresh an already-open Explorer.
No Explorer decorations appear at all: confirm Explorer: Decorations: Badges is enabled in VS Code settings.
Modified files still show M: VS Code and the built-in Git extension may prioritize source-control badges over extension-provided badges. Try hovering unmodified files first.
Line count shows unavailable: the file is larger than otakFilemeter.maxLineCountBytes, could not be read, or looks like binary content.
Security & Privacy
No telemetry: no analytics, identifiers, or usage tracking.
No network calls: it never uploads file names or file contents.
No workspace writes: it reads metadata and small text file contents only to decorate the Explorer.