This is the abbreviation you will use to trigger the Live TemplateĪ description that explains what the Live Template does
There are several fields to fill out here: A new Live Template is created and you can now configure the Live Template. To create a Live Template click on the + sign in the right toolbar and you are asked if you want to create a new Live Template or a Template Group. The group is only there for organizing it doesn't influence how the Live Template is used. All others are grouped by the type of Live Template. The groups make it easier to organize the Live Templates, in the image you can see there is also a group called RolandD, that is my own group. There are a different set of groups, each group has it's own set of Live Templates. This will bring you to this screen and you will notice that PhpStorm comes with a bunch of Live Templates out of the box.
Live templates can be configured by going to Preferences -> Editor -> Live Templates. These variables can be filled in on the fly.
#Phpstorm live templates code#
A live template is a code snippet with variables. Live templates are a feature in PhpStorm that has many uses, not just for documenting your code. Once you figured it out you realize there is no time to document it now since you lost all that time figuring out what it was for and you need to move on. The end meaning never and when you need that code again you spend all that time figuring out what the function was for. Documenting your code is always a hassle and usually left till the end.