# microsoft/terminal SLOC report

> microsoft/terminal: 267,454 code lines at commit f6de9e061801, counted with tokei-15.0.0 on 2026-11-11. Saved result eb0bac3ce2d320bf203b7f8a6291be53c3decf633c197b9f794d15d5e9c6be35.

microsoft/terminal has 267,454 source lines of code out of 372,804 total lines across 1,620 files, counted with tokei from the main ref at commit f6de9e061801 on November 11, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

OctoCounts produced this report by resolving microsoft/terminal to commit f6de9e061801, 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/terminal: 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 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++ | 558 | 254,921 | 182,442 | 40,597 | 31,882 |
| C Header | 434 | 49,102 | 33,913 | 7,907 | 7,282 |
| XAML | 50 | 13,729 | 11,918 | 966 | 845 |
| C++ Header | 145 | 15,383 | 10,462 | 2,722 | 2,199 |
| C# | 97 | 14,014 | 10,226 | 1,765 | 2,023 |
| Visual Studio Project | 76 | 6,610 | 5,749 | 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,523 | 1,506 | 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,009 | 519 | 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 on November 11, 2026. Canonical report: https://octocounts.com/github/microsoft/terminal/commit/f6de9e0618015def1c9dda5b82f9d3abf03eb799?reportId=eb0bac3ce2d320bf203b7f8a6291be53c3decf633c197b9f794d15d5e9c6be35&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/f6de9e0618015def1c9dda5b82f9d3abf03eb799?reportId=eb0bac3ce2d320bf203b7f8a6291be53c3decf633c197b9f794d15d5e9c6be35&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 267,454 lines of code, plus 59,003 comment lines and 46,347 blank lines, for 372,804 total lines at commit f6de9e061801 on November 11, 2026. Tests, docs and generated files are excluded under OctoCounts' canonical public options.

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

OctoCounts resolved the public GitHub repository to commit f6de9e061801, 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 f6de9e061801 on November 11, 2026.

## Similar repository reports

- [triton-lang/triton](https://octocounts.com/github/triton-lang/triton) — C++, 267,162 code lines
- [ip7z/7zip](https://octocounts.com/github/ip7z/7zip) — C++, 266,788 code lines
- [yyl-20020115/OpenArk](https://octocounts.com/github/yyl-20020115/OpenArk) — C++, 269,793 code lines
- [fltk/fltk](https://octocounts.com/github/fltk/fltk) — C++, 265,075 code lines
- [zeas2/Kirikiroid2](https://octocounts.com/github/zeas2/Kirikiroid2) — C++, 262,282 code lines
- [pixl27/ProjectReLink](https://octocounts.com/github/pixl27/ProjectReLink) — C++, 274,661 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)
- [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)
