Skip to content
Esc
↑↓navigate↵open⌘Jpreview
On this page

format/control-flow/switch-case-space

In the format-laravel and format-psr12 presets. Safe fix.

What it does

Removes extra spaces between colon and case value.

Configuration

[format.rules]
"control-flow/switch-case-space" = true

To skip it in some files, add a @pun-ignore-file comment.

Replaces

More format/control-flow rules · Edit this page

Last updated on

Was this page helpful?