code formatting

Making code readable

Code formatting is the arrangement of source code for readability—indentation, spacing, line breaks, and alignment.

Consistent formatting makes code easier to scan and maintain: The style guide requires four-space indentation.

Teams often enforce formatting automatically with tools that reformat code on save.

Formatting is distinct from logic; it affects appearance, not behavior.

Related

linting · prettier · syntax · camel case · brackets · alignment · readability · style · conventions · style guide · best practices · curly braces · semicolons · newlines · minify · beautify · cleanup · standards

Categories
Opposites
structure vs. chaos

code formattingspaghetti code

Poorly structured program

form vs. substance

code formattingalgorithm

Finite problem-solving procedure

human readability vs. machine optimization

code formattingmachine code

CPU-executable binary instructions

bytecode · compiled code · binary

Family

code, codes, coded, coding, coder, coders, codify, codification, codec

Familiarity
Top 500,000
Profile
Used worldwide · Timeless · Rated G