PhpStorm 2021.1 Help

Tabs and Indents

Function or procedure call

ItemDescription
Use tab characterUse TAB characters instead of SPACE characters for indents. A TAB character appears when you press Tab. A SPACE character when you press Space.
Smart tabsUse combination of TAB and SPACE characters depending on the context.
Tab sizeSet the size of a single TAB character (in a number of SPACE characters).
IndentSet the size of an indent (in a number of SPACE characters). Indent is a position of a text relative to the margin. In our case, the margin is a gutter with line numbers.
Continuation indent

Add a number of SPACE characters to an indent on a next line for a multiline expression. Consider the following example with zero indent and aligned strings.

Original expressionContinuation indent = 4
Continuation indent = 4
To begin
Keep indents on empty linesKeep indents if the line is empty.
Last modified: 09 August 2021