Search code examples
intellij-ideaphpstorm

Is there a way to get a quick preview/list of live templates in PHPStorm?


I have a lot of user defined live templates, but I don't use them quite often enough that I always remember what they are.

Is there a shortcut or hotkey to bring up a quick list without opening up settings and digging through the ones I've defined?


Solution

    1. Invoke Code | Insert Live Template (Ctrl + J) to bring the list of all applicable in current context live templates (or just use code completion popup if they are listed there)

    2. Select desired live template

    3. Invoke View | Quick Documentation via shortcut (Ctrl + Q)

    Now you should see both: list of live template + template body.

    enter image description here