# microsoft/PowerToys SLOC report

> As of 2026-07-31 (commit bb99c30edcd4), microsoft/PowerToys contains 922,121 total lines: 691,437 code, 118,372 comments, 112,312 blank, across 6,566 files in 27 languages (top: C# 48.5%). Counted with tokei via OctoCounts.

OctoCounts produced this report by resolving microsoft/PowerToys to commit bb99c30edcd4, downloading the repository source archive, and counting every source file 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, so counting the same revision again reproduces exactly these numbers.

## Repository size insights

This is a large codebase by counted code lines. Code represents 75.0% of all lines, comments represent 12.8%, and the repository averages 105 code lines per file. C# accounts for 48.5% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C# | 3,817 | 464,086 | 335,596 | 61,308 | 67,182 |
| C++ | 595 | 168,547 | 133,406 | 13,390 | 21,751 |
| XAML | 295 | 42,935 | 40,059 | 1,264 | 1,612 |
| C++ Header | 1 | 46,251 | 37,765 | 610 | 7,876 |
| JavaScript | 112 | 55,023 | 27,554 | 23,289 | 4,180 |
| YAML | 40 | 27,145 | 27,105 | 2 | 38 |
| C Header | 716 | 35,138 | 25,707 | 3,999 | 5,432 |
| .NET Resource | 122 | 26,733 | 19,769 | 6,945 | 19 |
| Visual Studio Project | 124 | 15,533 | 15,158 | 164 | 211 |
| MSBuild | 246 | 12,048 | 9,934 | 936 | 1,178 |
| JSON | 142 | 6,721 | 6,700 | 0 | 21 |
| C | 15 | 4,233 | 3,384 | 498 | 351 |

Top language (C# 48.5%). Generated at 2026-07-31T05:46:40.943981443+00:00. Canonical report: https://octocounts.com/github/microsoft/PowerToys

## Report FAQ

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

microsoft/PowerToys has 922,121 total lines, including 691,437 code lines, 118,372 comment lines, and 112,312 blank lines.

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

OctoCounts resolved the public GitHub repository to commit bb99c30edcd4, 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 bb99c30edcd4 on 2026-07-31T05:46:40.943981443+00:00.

## Similar repository reports

- [dotnet/aspnetcore](https://octocounts.com/github/dotnet/aspnetcore) — C#, 654,710 code lines
- [dotnet/AspNetCore.Docs](https://octocounts.com/github/dotnet/AspNetCore.Docs) — C#, 654,692 code lines
- [GOWone/MicroCTSystem](https://octocounts.com/github/GOWone/MicroCTSystem) — C#, 631,123 code lines
- [PowerShell/PowerShell](https://octocounts.com/github/PowerShell/PowerShell) — C#, 556,222 code lines
- [SmartlyDressedGames/U3-SDK](https://octocounts.com/github/SmartlyDressedGames/U3-SDK) — C#, 342,837 code lines
- [iamcheyan/Zircon](https://octocounts.com/github/iamcheyan/Zircon) — C#, 335,013 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)
- [GitHub SLOC counter guide](https://octocounts.com/docs/github-sloc-counter)
- [Counting methodology](https://octocounts.com/docs/methodology)
- [OctoCounts API docs](https://octocounts.com/docs/api)
