Indentation style

In computer programming, indentation style is a convention, a.k.a. style, governing the indentation of blocks of source code that is generally intended to convey structure.

Generally, an indentation style uses the same width of whitespace (indentation size) before each line of a group of code so that they appear to be related.

As whitespace consists of both space and tab characters, a programmer can choose which to use – often entering them via the space key or tab key on the keyboard.

Some research has been conducted on the value of code indentation.