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?
This post might be a collection of templates we find useful:
- Live templates for db, has_one, etc, but also field_labels, getCMSFields and other useful stuff by Martijn
- File Template for Dataobject and Page / Page_Controller by Werner
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.