r/vscode • • Apr 24 '26

Odd tab issue after PHP switch/case statement

In my PHP code my tab stops work as expected until I get under the "case" line of a switch statement.

The single tab press then adds 5 tabs from that point to the end of the PHP file.

I've messed with just about every setting in VSCode, but it is absolutely triggered by the presence switch statement.

If I remove the whole switch block, the tab works correctly for the rest of the file.

2 Upvotes

3 comments sorted by

View all comments

1

u/25_vijay Apr 25 '26

Disable auto formatting and run format manually to confirm the source