cleancode.in

Official style guides, language by language

The guide each language’s own people publish on how its code should look, with the indent, the line length and the formatter it names.

What indent and line length does each set?

LanguageIndentLine length
Python source4 spaces79 characters
Java source4 spaces80 characters
JavaScript not quotednot quoted
TypeScript not quotednot quoted
C# source4 spacesnot quoted
Go sourcetabsno limit
Rust source4 spaces100 characters
Kotlin source4 spacesnot quoted
Dart sourcenot quoted80 characters
SAP ABAP sourcenot quoted120 characters

Not quoted: the pages we quote do not set it.

Which formatter does each guide name?

The other 6 name none. Go gives the reason: let the machine take care of most formatting issues source.