Skip to content

Instantly share code, notes, and snippets.

@CodeBrauer
Last active July 27, 2021 07:32
Show Gist options
  • Save CodeBrauer/1fb27660c442268850f4541fe11e3342 to your computer and use it in GitHub Desktop.
Save CodeBrauer/1fb27660c442268850f4541fe11e3342 to your computer and use it in GitHub Desktop.
All code letter cases for programming

letter cases:

Identifier Name Example
ada Ada case The_Quick_Brown_Fox
camel Camel case theQuickBrownFox
cobol COBOL case THE-QUICK-BROWN-FOX
dot Dot notation the.quick.brown.fox
kebab Kebab case the-quick-brown-fox
lower Lower case the quick brown fox
macro Macro case THE_QUICK_BROWN_FOX
pascal Pascal case TheQuickBrownFox
sentence Sentence case The quick brown fox
snake Snake case the_quick_brown_fox
title Title case The Quick Brown Fox
train Train case The-Quick-Brown-Fox
upper Upper case THE QUICK BROWN FOX

Source: https://github.com/ramsey/conventional-commits

+--------------------------+-------------------------------------------------------------+
| Formatting               | Name(s)                                                     |
+--------------------------+-------------------------------------------------------------|
| namingidentifier         | flat case/Lazy Case                                         |
| NAMINGIDENTIFIER         | upper flat case                                             |
| namingIdentifier         | (lower) camelCase, dromedaryCase                            |
| NamingIdentifier         | (upper) CamelCase, PascalCase, StudlyCase, CapitalCamelCase |
| naming_identifier        | snake_case, snake_case, pothole_case, C Case                |
| Naming_Identifier        | Camel_Snake_Case                                            |
| NAMING_IDENTIFIER        | SCREAMING_SNAKE_CASE, MACRO_CASE, UPPER_CASE, CONSTANT_CASE |
| naming-identifier        | Kebab Case/caterpillar-case/dash-case, hyphen-case,         |
|                          | lisp-case, spinal-case and css-case                         |
| NAMING-IDENTIFIER        | TRAIN-CASE, COBOL-CASE, SCREAMING-KEBAB-CASE                |
| Naming-Identifier        | Train-Case, HTTP-Header-Case                                |
| _namingIdentifier        | Undercore Notation (prefixed by "_" followed by camelCase   |
| datatypeNamingIdentifier | Hungarian Notation (variable names Prefixed by metadata     |
|                          | data-types which is out-dated)                              |
|--------------------------+-------------------------------------------------------------+

Source: https://stackoverflow.com/a/64293621/1990745

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment