In addition to above answer – we need to use external tool in phpStorm PHPStorm does format your code well to PSR standards by default, and it will also refactor stuff like missing curly braces for one-line if structures etc.įor the 2nd thing you ask, actually it’s already built in Netbeans, you just have to configure it properly and hit ctrl+shift+F. Just have a look at Fabien Potenciers CS fixer at – I cannot tell you about the quality of the output, but as this seems to be a one time task, I don’t think you’d need a plugin for this. > Predefined Style -> PSR1/PSR2ĭetails are on the JetBrain‘s web site too. For PhpStorm code formatting can be set to PSR1/PSR2 simply: File -> Settings -> Code Style -> PHP -> Set From.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |