Skip to content

Tag reference

@formatter:on

The @formatter:on tag re-enables PhpStorm’s automatic code formatting from this point on, pairing with an earlier @formatter:off.

Grammar

"@formatter:on" [ <Description> ]

Examples

Turning the formatter back on after a block.
/** @formatter:off */
$pairs = ['a' => 1, 'bb' => 2];
/** @formatter:on */

Names by platform

phpstorm
@formatter:on

Parsing a @formatter:on tag produces a FormatterOnTag instance. Being a pure marker, it adds nothing beyond the $name and optional $description every Tag already carries.

final class FormatterOnTag extends FlagTag {}

Associated with PhpStorm.