.cs
4 claimants
3 primary
1 secondary
shared primary (3)
SWH popularity
From the SWH-MSR-ARV dataset (Desmazières, Di Cosmo, Lorentz, MSR 2025; file nb_extensions_alphanum.csv) — one row per (ext, year) in the full SWH archive. Case-aggregated. citation.
345.7M
total occurrences
106.3M
since 2019 (30.7%)
1970–2023
years active
Case variants in archive: .cs (345.7M), .CS (19.2K), .Cs (1.1K), .cS (864) — aggregated above.
Attribution status
This extension is attributed to C Sharp (programming language); C#; C#; C#; csharp as primary by 5 authoritative claims.
Claimants (6)
Languages that list
.cs among their extensions. Strength reflects whether the upstream source treated it as their primary extension.| Language | Source | Strength |
|---|---|---|
| C Sharp (programming language) | pygments | primary |
| C# | linguist | primary |
| C# | pygments | primary |
| C# | wikidata | primary |
| csharp | pygments | primary |
| Smalltalk | linguist | secondary |
Wikidata says… (3)
File formats, image formats, audio codecs and other non-PL
entities that claim
.cs on Wikidata
(property P1195) or in the Wikipedia infobox.
Source: data/derived/external_extension_index.csv.
Click Use as new PL on any row to open the
Add-PL form pre-filled with that entry's name, Wikipedia/Wikidata
URL, and this extension — one submission creates the PL + claim.
| Format | Class (Wikidata P31) | Suggested label | MIME | Notes | Action |
|---|---|---|---|---|---|
| C# source code file Q111431061 file format | file format | — | text/x-csharp | — | Use as new PL ↗ |
| ColorSchemer Studio Color Scheme Q105849756 file format | file format | — | — | — | Use as new PL ↗ |
| TorqueScript file Q128203989 file format | file format | — | — | — | Use as new PL ↗ |
Disambiguation rules (2)
Linguist heuristics that decide, by content, which language a
.cs file actually is.| Rule | Predicts | Kind | Predicates (truncated) |
|---|---|---|---|
h/linguist/.cs/0 | Smalltalk | predicates | [{"kind": "any", "regexes": ["![\\w\\s]+methodsFor: "]}] |
h/linguist/.cs/1 | C# | predicates | [{"kind": "any", "regexes": ["^\\s*(using\\s+[A-Z][\\s\\w.]+;|namespace\\s*[\\w\\.]+\\s*(\\{|;)|\\/\\/)"]}] |
SWH-mined examples (0)
No archived examples for .cs in our local mirror yet.