How to configure PHPStorm for PSR-2

Just a quick tip - since Laravel 5.1 now is coming with PSR-2 support (most important change is spaces indent instead of tabs), it makes sense to configure your editor to support that by default, if you haven't done so already. To choose Code Style in PHPStorm, you just to to File -> Settings and navigate to that menu. phpstorm_psr2 Just choose PSR1/PSR2 and you're good to go!

No comments yet…

Like our articles?

Become a Premium Member for $129/year or $29/month

Written by