---
title: "Coding guidelines"
manual: "TYPO3 Explained"
version: "main"
permalink: "https://docs.typo3.org/permalink/t3coreapi:cgl@main"
source: "CodingGuidelines/Index.rst"
modified: "2026-09-14T11:10:56+00:00"
---

# Coding guidelines

This chapter contains description of the formal requirements or standards
regarding coding that you should adhere to when you develop TYPO3
extensions or Core parts.

> [!TIP]
> You can find an
> [.editorconfig](https://github.com/typo3/typo3/blob/main/.editorconfig)
> file in the TYPO3 Core  repository.
> [Some editors and IDEs](https://editorconfig.org/) can use this
> file and the rules defined within.

Some basic rules are defined in the .editorconfig, such as the charset and
the indenting style. By default, indenting with 4 spaces is
used, but there are a few exceptions (e.g. for YAML or JSON
files).

For the files that are not specifically covered in the subchapters (e.g.
Fluid, .json, or .sql), the information in the .editorconfig file
should be sufficient.

-   [Introduction](https://docs.typo3.org/permalink/t3coreapi:cgl-introduction@main)
-   [PHP](https://docs.typo3.org/permalink/t3coreapi:cgl-php@main)
-   [JavaScript](https://docs.typo3.org/permalink/t3coreapi:cgl-javascript@main)
-   [TypeScript](https://docs.typo3.org/permalink/t3coreapi:cgl-typescript@main)
-   [TypoScript](https://docs.typo3.org/permalink/t3coreapi:cgl-typoscript@main)
-   [TSconfig](https://docs.typo3.org/permalink/t3coreapi:cgl-tsconfig@main)
-   [XLIFF](https://docs.typo3.org/permalink/t3coreapi:cgl-xliff@main)
-   [YAML](https://docs.typo3.org/permalink/t3coreapi:cgl-yaml@main)
-   [reStructuredText](https://docs.typo3.org/permalink/t3coreapi:cgl-rest@main)
