Skip to content

Tag reference

@formatter:off

The @formatter:off tag disables PhpStorm’s automatic code formatting from this point on, until a matching @formatter:on is found further down the file.

Grammar

"@formatter:off" [ <Description> ]

Examples

Keeping a hand-formatted block as written.
/** @formatter:off */
$matrix = [
1, 0, 0,
0, 1, 0,
];
/** @formatter:on */

Names by platform

phpstorm
@formatter:off

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

final class FormatterOffTag extends FlagTag {}

Associated with PhpStorm.