How to:
- Download and copy the xml file(s) to your templates folder:
- Windows:
<your home directory>\.<product name><version number>\config\templates
- Linux:
~\.<product name><version number>\config\templates
- OS X:
~/Library/Preferences/<product name><version number>/templates
e.g. ~/Library/Preferences/WebIde70/templates
on OS X for PhpStorm 7
-
Restart PhpStorm.
-
To see all templates, go to Preferences->Live Templates and expand the Template Group.
It's hard to remember shortcuts when there are a large number of options. A more efficient way is to take advantage of PhpStorm's Insert Live Template shortcut. Type as few or as many letters as you want and press Cmd + J
.
Type Sc
or Sch
or Schema
and press Cmd + J
Type $ta
or $tab
or $table
and press Cmd + J
. As you continue typing, the options get filtered.
All Route verbs are labelled get
by default, but you can change it easily once the shortcut is expanded:
==========
Take your PhpStorm productivity to the next level with these keyboard shortcuts.