AdrianeZ - programuj
AdrianeZ - programuj

Reputation: 263

PhpStorm formatting issue

noticed PhpStorm doesn't format code properly. I'm using standard Ctrl + Shift + L shortcut and it works because it pops out info that content is properly formatted.

PhpStorm

What's wrong? I'm using Material UI Theme. I've already tried to disable this plugin, no change.

enter image description here

Upvotes: 0

Views: 569

Answers (2)

user3251285
user3251285

Reputation: 163

Goto Settings > Editor > File types.

For PHP files (as an example), look for PHP in the left column (under Recognize File Types), verify you have *.php under the File name patterns column/box

That fixed it for me.

Upvotes: 0

Dmitrii
Dmitrii

Reputation: 3557

Open File | Settings | Languages & Frameworks | Template Data Languages & remove any customizations from there. That's a PhpStorm bug: https://youtrack.jetbrains.com/issue/WI-42822 & https://youtrack.jetbrains.com/issue/WI-42135.

Upvotes: 1

Related Questions