See all glossary termsAn indentation, or indent for 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 would 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, one indent is composed of either four space characters or one tab character.
While GDScript supports both tabs and spaces for indentation, you cannot mix tabs and space characters within a single GDScript file.See Also
Related terms in the Glossary
school.gdquest.com - 0.3.5-2025-04-09T12:27:12.172Z-8c7d06bd6c5c83cc3ecb341e0855f7a3270cb7e6-release