PhpStorm – How to use WordPress code style with code cleanup

The following steps show how to change PhpStorm’s code cleanup feature to use the WordPress Coding Standards.

  1. With PhpStorm open, click on the ‘File’ menu then click on ‘Settings’
  2. phpstorm-wordpresscodecleanup1
  3. Expand Editor -> Code Style and click on ‘PHP’
  4. At the right of the window, click on ‘Set from’ and choose Predefined Style -> WordPress
  5. phpstorm-wordpresscodecleanup2
  6. Click ‘OK’ to save the changes.

Related Articles

Leave a Reply

Your email address will not be published.