# microsoft/terminal SLOC report

> As of 2026-08-24 (commit 20588130d8ef), microsoft/terminal contains 368,219 total lines: 263,670 code, 58,619 comments, 45,930 blank, across 1,616 files in 27 languages (top: C++ 68.2%). Counted with tokei via OctoCounts.

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

| Language | Files | Lines | Code | Comments | Blanks |
| --- | ---: | ---: | ---: | ---: | ---: |
| C++ | 557 | 251,878 | 179,817 | 40,487 | 31,574 |
| C Header | 431 | 48,516 | 33,483 | 7,836 | 7,197 |
| XAML | 48 | 12,786 | 11,179 | 789 | 818 |
| C++ Header | 148 | 15,617 | 10,628 | 2,757 | 2,232 |
| C# | 97 | 13,929 | 10,190 | 1,735 | 2,004 |
| Visual Studio Project | 76 | 6,594 | 5,733 | 676 | 185 |
| PowerShell | 18 | 3,054 | 2,312 | 356 | 386 |
| Module-Definition | 32 | 2,003 | 1,964 | 6 | 33 |
| Batch | 38 | 2,253 | 1,592 | 420 | 241 |
| JSON | 17 | 1,544 | 1,527 | 0 | 17 |
| SVG | 8 | 1,381 | 1,365 | 16 | 0 |
| MSBuild | 30 | 1,660 | 1,277 | 243 | 140 |

Top language (C++ 68.2%). Generated at 2026-08-24T02:12:16.109506535+00:00. Canonical report: https://octocounts.com/github/microsoft/terminal

## Report FAQ

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

microsoft/terminal has 368,219 total lines, including 263,670 code lines, 58,619 comment lines, and 45,930 blank lines.

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

OctoCounts resolved the public GitHub repository to commit 20588130d8ef, 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 20588130d8ef on 2026-08-24T02:12:16.109506535+00:00.

## Similar repository reports

- [optiscaler/OptiScaler](https://octocounts.com/github/optiscaler/OptiScaler) — C++, 262,871 code lines
- [zeas2/Kirikiroid2](https://octocounts.com/github/zeas2/Kirikiroid2) — C++, 262,282 code lines
- [ctrl-alt-test/demo-archive](https://octocounts.com/github/ctrl-alt-test/demo-archive) — C++, 267,189 code lines
- [YuriSizuku/Kirikiroid2Yuri](https://octocounts.com/github/YuriSizuku/Kirikiroid2Yuri) — C++, 268,699 code lines
- [randombit/botan](https://octocounts.com/github/randombit/botan) — C++, 271,439 code lines
- [jd-opensource/xllm](https://octocounts.com/github/jd-opensource/xllm) — C++, 243,564 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)
- [OctoCounts API docs](https://octocounts.com/docs/api)
