# microsoft/terminal SLOC report

> microsoft/terminal: 267,341 code lines at commit 1046205b04e5, counted with tokei-14.0.0 on 2026-10-21. Saved result 032a59bbf16fcb9b940fa929e731dcf17088e235d24a1d06d26d03cd0e7936ee.

microsoft/terminal has 267,341 source lines of code out of 372,665 total lines across 1,623 files, counted from the main ref at commit 1046205b04e5 by the OctoCounts tokei engine on 2026-10-21. The report is cached by commit, tokei version, and analysis options, so recounting the same revision returns exactly these numbers.

OctoCounts produced this report by resolving microsoft/terminal to commit 1046205b04e5, 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 71.7% of all lines, comments represent 15.8%, and the repository averages 165 code lines per file. C++ accounts for 68.2% of counted code.

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 559 | 254,730 | 182,295 | 40,575 | 31,860 |
| C Header | 434 | 49,064 | 33,891 | 7,893 | 7,280 |
| XAML | 50 | 13,718 | 11,909 | 965 | 844 |
| C++ Header | 147 | 15,458 | 10,501 | 2,750 | 2,207 |
| C# | 97 | 14,014 | 10,226 | 1,765 | 2,023 |
| Visual Studio Project | 76 | 6,611 | 5,750 | 676 | 185 |
| PowerShell | 18 | 3,183 | 2,437 | 361 | 385 |
| Module-Definition | 32 | 2,004 | 1,964 | 6 | 34 |
| Batch | 38 | 2,253 | 1,592 | 420 | 241 |
| JSON | 17 | 1,547 | 1,530 | 0 | 17 |
| SVG | 8 | 1,381 | 1,365 | 16 | 0 |
| MSBuild | 30 | 1,661 | 1,278 | 243 | 140 |
| XML | 11 | 625 | 536 | 55 | 34 |
| HLSL | 17 | 959 | 523 | 319 | 117 |
| Bitbake | 20 | 1,010 | 520 | 292 | 198 |
| Visual Studio Solution | 6 | 363 | 357 | 0 | 6 |
| Python | 4 | 252 | 185 | 36 | 31 |
| .NET Resource | 2 | 307 | 183 | 118 | 6 |
| INI | 4 | 116 | 104 | 0 | 12 |
| CMake | 8 | 124 | 86 | 18 | 20 |
| NuGet Config | 4 | 55 | 46 | 7 | 2 |
| Jupyter Notebooks | 1 | 55 | 35 | 3 | 17 |
| HTML | 1 | 16 | 16 | 0 | 0 |
| JavaScript | 1 | 25 | 8 | 13 | 4 |
| Monkey C | 1 | 4 | 4 | 0 | 0 |
| Markdown | 27 | 2,380 | 0 | 1,756 | 624 |
| Plain Text | 10 | 750 | 0 | 707 | 43 |

Top language (C++ 68.2%). Generated at 2026-10-21T02:21:24.603659785Z. Canonical report: https://octocounts.com/github/microsoft/terminal/commit/1046205b04e5cc92dbaf9f93982aff6b80c565cc?reportId=032a59bbf16fcb9b940fa929e731dcf17088e235d24a1d06d26d03cd0e7936ee&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/terminal/commit/1046205b04e5cc92dbaf9f93982aff6b80c565cc?reportId=032a59bbf16fcb9b940fa929e731dcf17088e235d24a1d06d26d03cd0e7936ee&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/terminal have?

microsoft/terminal has 372,665 total lines, including 267,341 code lines, 58,994 comment lines, and 46,330 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 1046205b04e5, 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/terminal?

This OctoCounts report was generated from main at commit 1046205b04e5 on 2026-10-21T02:21:24.603659785Z.

## Similar repository reports

- [ctrl-alt-test/demo-archive](https://octocounts.com/github/ctrl-alt-test/demo-archive) — C++, 267,189 code lines
- [ip7z/7zip](https://octocounts.com/github/ip7z/7zip) — C++, 266,486 code lines
- [contour-terminal/contour](https://octocounts.com/github/contour-terminal/contour) — C++, 269,043 code lines
- [zeas2/Kirikiroid2](https://octocounts.com/github/zeas2/Kirikiroid2) — C++, 262,282 code lines
- [metasequoiaime/msime-windows](https://octocounts.com/github/metasequoiaime/msime-windows) — C++, 260,053 code lines
- [gscept/nebula](https://octocounts.com/github/gscept/nebula) — C++, 254,159 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)
- [TensorFlow vs PyTorch](https://octocounts.com/compare/tensorflow-vs-pytorch)
- [Electron vs Tauri](https://octocounts.com/compare/electron-vs-tauri)
- [Godot vs Bevy](https://octocounts.com/compare/godot-vs-bevy)
- [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)
