Categories
Web Programming

PHPStorm: Reformatting does not do anything

Most code editors allows you to set code style standards. I use PHPStorm as my preferred code editor.

Formatting code becomes easier when you set a coding standard in your editor. However, when I tried to reformat my code, PHPStorm (v2020.2) did not reformat the code as intended.

I verified that the styles are in place before I restarted PHPStorm. But the restart didn’t help.

With Google at my rescue, I figured that you can temporarily solve the problem by deleting the .idea folder that PHPStorm generates.

Leave a Reply

Your email address will not be published. Required fields are marked *