microsoft/PowerToys has 954,873 source lines of code out of 1,249,846 total lines across 7,884 files, counted with tokei from the main ref at commit 303f4ddd5c96 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
As of 2026-11-16 (commit 303f4ddd5c96), microsoft/PowerToys contains 1,249,846 total lines: 954,873 code, 140,483 comments, 154,490 blank, across 7,884 files in 28 languages (top language: C# 54.3%). Canonical public options (tests, docs and generated files excluded). Counted with tokei via OctoCounts.
OctoCounts produced this report by resolving microsoft/PowerToys to commit 303f4ddd5c96, downloading the repository source archive, and counting files selected by the effective rules with tokei, the open-source line counter written in Rust. The table below breaks the count down by programming language into files, total lines, code lines, comment lines, and blank lines, so the figures can be compared across languages and projects. Results are cached by commit, tokei version, and analysis options; an exact reproduction needs the same commit, engine version, and effective counting rules.
This is a large codebase by counted code lines. Code represents 76.4% of all lines, comments represent 11.2%, and the repository averages 121 code lines per file. C# accounts for 54.3% of counted code.
| Language | Files | Lines | Code | Comments | Blanks |
|---|---|---|---|---|---|
| C# | 4999 | 691970 | 518818 | 76356 | 96796 |
| C++ | 613 | 207473 | 166532 | 15215 | 25726 |
| XAML | 314 | 47280 | 44256 | 1313 | 1711 |
| C++ Header | 1 | 46251 | 37765 | 610 | 7876 |
| C Header | 715 | 43494 | 32172 | 5018 | 6304 |
| C | 19 | 41746 | 32171 | 2512 | 7063 |
| YAML | 44 | 28302 | 28258 | 2 | 42 |
| JavaScript | 106 | 54268 | 26939 | 23237 | 4092 |
| .NET Resource | 124 | 26631 | 19777 | 6830 | 24 |
| Visual Studio Project | 126 | 14990 | 14695 | 129 | 166 |
| MSBuild | 313 | 14652 | 12153 | 1077 | 1422 |
| PowerShell | 46 | 9319 | 7935 | 682 | 702 |
Top language: C# 54.3%. Generated on .
microsoft/PowerToys: tokei-15.0.0, policy directories-v1; docs excluded, tests excluded, generated excluded. Excluded directory names: .cache, .generated, .git, .next, __tests__, build, dist, doc, docs, documentation, fixtures, gen, generated, node_modules, target, test, tests, vendor. Ignored languages: none. Repository declarations: off. Exclusions are rule-based; they do not prove that every test, document or generated file was removed.
Saved reports remain subject to cache cleanup and replacement. Export the JSON or text for durable citation; live repository URLs can change.
microsoft/PowerToys has 954,873 lines of code, plus 140,483 comment lines and 154,490 blank lines, for 1,249,846 total lines at commit 303f4ddd5c96 on November 16, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.
OctoCounts resolved the public GitHub repository to commit 303f4ddd5c96, downloaded the source archive, counted it with tokei, and cached the report by commit, tokei version, and analysis options.
This OctoCounts report was generated from main at commit 303f4ddd5c96 on November 16, 2026.
Other public repositories with an OctoCounts report, ranked by top language and code size similarity:
Play the growth animation for microsoft/PowerToys on this page — 954,873 code lines across 28 languages, counted by tokei.