Easier coding with PHPStorm templates

If you're using PHPStorm or Intellij IDEA you might know, that you can use some templates to ease your work. E.g type "db" and you get the whole "private static $db = [];" thingie. Did you know you can share your templates, so others can also enjoy them?

Well, you can, as this post states, export those live templates to XML. And you can create file templates from files. Easy, isn't it?

This post might be a collection of templates we find useful:

Feel free to play around and improve those templates. Do you have other useful tipps for easier creation of modules, classes or methods you want to share? Leave a comment and we can update this post.

Rate this post

Post your comment

Comments

  • Werner Krauss 13/07/2016 10:58am (2 years ago)

    There is also https://github.com/studiobonito/phpstorm-templates-silverstripe around for some time.

RSS feed for comments on this page | RSS feed for all comments