# microsoft/PowerToys SLOC report

> microsoft/PowerToys: 954,873 code lines at commit 303f4ddd5c96, counted with tokei-15.0.0 on 2026-11-16. Saved result f9994a0be5e200f7aa7c6f2371564aeb2c99bbc16fe17a8e378a2432e8bcd2e3.

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.

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.

## Counting rules and retention

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.

## Repository size insights

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# | 4,999 | 691,970 | 518,818 | 76,356 | 96,796 |
| C++ | 613 | 207,473 | 166,532 | 15,215 | 25,726 |
| XAML | 314 | 47,280 | 44,256 | 1,313 | 1,711 |
| C++ Header | 1 | 46,251 | 37,765 | 610 | 7,876 |
| C Header | 715 | 43,494 | 32,172 | 5,018 | 6,304 |
| C | 19 | 41,746 | 32,171 | 2,512 | 7,063 |
| YAML | 44 | 28,302 | 28,258 | 2 | 42 |
| JavaScript | 106 | 54,268 | 26,939 | 23,237 | 4,092 |
| .NET Resource | 124 | 26,631 | 19,777 | 6,830 | 24 |
| Visual Studio Project | 126 | 14,990 | 14,695 | 129 | 166 |
| MSBuild | 313 | 14,652 | 12,153 | 1,077 | 1,422 |
| PowerShell | 46 | 9,319 | 7,935 | 682 | 702 |
| JSON | 145 | 7,117 | 7,096 | 0 | 21 |
| Python | 4 | 3,807 | 2,901 | 298 | 608 |
| SVG | 65 | 1,688 | 1,683 | 3 | 2 |
| XML | 13 | 692 | 677 | 8 | 7 |
| NuGet Config | 86 | 410 | 410 | 0 | 0 |
| Visual Studio Solution | 7 | 211 | 204 | 0 | 7 |
| HLSL | 2 | 258 | 146 | 81 | 31 |
| Module-Definition | 21 | 124 | 118 | 1 | 5 |
| HTML | 5 | 77 | 60 | 10 | 7 |
| Makefile | 1 | 58 | 42 | 1 | 15 |
| Batch | 4 | 48 | 33 | 2 | 13 |
| CMake | 1 | 43 | 27 | 11 | 5 |
| INI | 1 | 3 | 3 | 0 | 0 |
| CSS | 1 | 8 | 2 | 6 | 0 |
| Markdown | 67 | 7,432 | 0 | 5,649 | 1,783 |
| Plain Text | 41 | 1,494 | 0 | 1,432 | 62 |

Top language: C# 54.3%. Generated on November 16, 2026. Canonical report: https://octocounts.com/github/microsoft/PowerToys/commit/303f4ddd5c96ef1cf77aa80092edc4091ac279f2?reportId=f9994a0be5e200f7aa7c6f2371564aeb2c99bbc16fe17a8e378a2432e8bcd2e3&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D

## Reproduce this report

[Reproduce this exact report and configuration](https://octocounts.com/github/microsoft/PowerToys/commit/303f4ddd5c96ef1cf77aa80092edc4091ac279f2?reportId=f9994a0be5e200f7aa7c6f2371564aeb2c99bbc16fe17a8e378a2432e8bcd2e3&analysis=%7B%22profile%22%3A%22default%22%2C%22ignoredDirs%22%3A%5B%5D%2C%22includeDocs%22%3Afalse%2C%22includeTests%22%3Afalse%2C%22ignoredLanguages%22%3A%5B%5D%2C%22includeGenerated%22%3Afalse%7D).

## Report FAQ

### How many lines of code does microsoft/PowerToys have?

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.

### How was the microsoft/PowerToys line count measured?

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.

### What commit was counted for microsoft/PowerToys?

This OctoCounts report was generated from main at commit 303f4ddd5c96 on November 16, 2026.

## Similar repository reports

- [stride3d/stride](https://octocounts.com/github/stride3d/stride) — C#, 962,759 code lines
- [jhaizhou-ops/S2Arm](https://octocounts.com/github/jhaizhou-ops/S2Arm) — C#, 1,042,283 code lines
- [abpframework/abp](https://octocounts.com/github/abpframework/abp) — C#, 834,902 code lines
- [PowerShell/PowerShell](https://octocounts.com/github/PowerShell/PowerShell) — C#, 818,067 code lines
- [Kareadita/Kavita](https://octocounts.com/github/Kareadita/Kavita) — C#, 785,235 code lines
- [sebastienros/jint](https://octocounts.com/github/sebastienros/jint) — C#, 1,202,941 code lines

## Related OctoCounts pages

- [Recently analyzed repositories](https://octocounts.com/recent)
- [Popular SLOC reports](https://octocounts.com/popular)
- [Trending GitHub repositories](https://octocounts.com/trending)
- [Hall of Monoliths](https://octocounts.com/hall-of-monoliths)
- [How to count lines of code in a GitHub repository](https://octocounts.com/docs/count-lines-of-code-github)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [SLOC and code metrics glossary](https://octocounts.com/docs/glossary)
- [Original research: how filtering changes SLOC counts](https://octocounts.com/research)
- [OctoCounts API docs](https://octocounts.com/docs/api)
- [All OctoCounts guides](https://octocounts.com/docs)
