Everything Counts
Counts the lines, words, characters and LLM tokens in your whole repository, skipping everything your .gitignore excludes.
- Status bar shows the total lines, words, characters or tokens. Hover it for all totals, click it for the full report.
- Report shows totals, a breakdown by file type and the largest files. Click a column header to sort.
- Token count (Pro): see how much of your repo fits in an LLM's context window.
- Exclude file types (Pro): tick them in the Choose file types to exclude list (untick to count them again), or press × next to a type in the report.
- Respects
.gitignore: in a git repo it counts every file git tracks plus untracked files that are not ignored. In a folder that is not a git repo it reads the .gitignore files directly.
- Skips binary files (files that contain a NUL byte, the same rule git uses).
- Fast: it re-reads only the files that changed, and it updates automatically as you edit.
- Works with multi-root workspaces.
Pro
Token counting and file type exclusion are Pro features. Buy a license with the Get Pro button in the report, then run Everything Counts: Enter License Key. A license can be removed from a computer with Everything Counts: Remove License Key.
Commands
| Command |
|
Everything Counts: Show Report |
Opens the report |
Everything Counts: Refresh |
Recounts now |
Everything Counts: Choose File Types to Exclude |
Tick the types to skip, untick to count them again |
Settings
| Setting |
Default |
|
everythingCounts.exclude |
[] |
More paths to skip, in .gitignore syntax, e.g. ["package-lock.json", "*.min.js"] |
everythingCounts.excludeExtensions |
[] |
File types to skip, e.g. [".json", ".lock", ".svg"] |
everythingCounts.tokenizer |
o200k_base |
o200k_base (GPT-4o, GPT-4.1, GPT-5), cl100k_base (GPT-4, GPT-3.5) or none |
everythingCounts.statusBarMetric |
lines |
lines, words, chars, tokens or none |
everythingCounts.autoRefresh |
true |
Recount automatically when files change |
How things are counted
- Lines: number of lines as an editor shows them. A last line with no trailing newline still counts.
- Words: runs of non-whitespace characters, like
wc -w.
- Characters: Unicode characters (code points), like
wc -m. A \r\n counts as two.
- Tokens: exact for OpenAI models using the chosen tokenizer. Claude, Gemini and other models use their own tokenizers, so for them the count is an estimate.
| |