Reputation: 263
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.
What's wrong? I'm using Material UI Theme. I've already tried to disable this plugin, no change.
Upvotes: 0
Views: 569
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
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