See all glossary terms

Indentation

An indentation, or indent in short, is the added spaces or tabs between the margin and the start of a line of code.
In GDScript and other programming languages like Python, indents tell the computer where blocks of code start and end.
Without indents, the computer could not know where the code of a function ends, for example.
The amount and type of indentation used depends on the programming language. In GDScript, for example, one indent is either composed of four space characters, or one tab character.
While GDScript supports both tabs and spaces for indentation, in one GDScript file, you cannot mix tabs and space characters.

See Also

Related terms in the Glossary