Search code examples
phpstorm

PhpStorm Live Template ENUM not showing suggestions


I have a live template for todos and I would like a dropdown list when I create them that give me the options of "todo", "fixme" and "note". I understand that I can use enum for this but I can't seem to get it working properly. Here is a screenshot of my live template:

Live template image

And here is a GIF of the use of that live template:

Live Template in action

What am I doing wrong?


Solution

  • Here's what I've came up with. You have to surround strings with quote signs there, please see:

    gif

    and

    setup