简体   繁体   中英

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.

在此处输入图像描述

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 .

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM