mstdmstd Posted October 25, 2019 Share Posted October 25, 2019 Hello, I have PhpStorm 2019.2.3 and wonder if it some plugin/tools to keep my php/html/vue/js code within PSR-2 rules ? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/309412-in-phpstorm-to-support-psr-2-rules/ Share on other sites More sharing options...
kicken Posted October 25, 2019 Share Posted October 25, 2019 For PHP you can go to Settings -> Editor -> Code Style -> PHP and on the right there is a Set from... link. Click it and choose Predefined Style -> PSR1/PSR2 That'll give you a basic setup which you could tweak as desired. While your editing a file you can press CTRL+ALT+L to have it re-format the document according to your style settings. 1 Quote Link to comment https://forums.phpfreaks.com/topic/309412-in-phpstorm-to-support-psr-2-rules/#findComment-1571001 Share on other sites More sharing options...
mstdmstd Posted October 26, 2019 Author Share Posted October 26, 2019 Thanks! Also In my projects I use blade,vue, javascript . 1) Do they have PSR2 format utility or maybe something similar it? 2) Are there some tools not refomat code, but show me errors not inside PSR2 ? Quote Link to comment https://forums.phpfreaks.com/topic/309412-in-phpstorm-to-support-psr-2-rules/#findComment-1571018 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.