dericcain
dericcain

Reputation: 2290

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?

Upvotes: 3

Views: 787

Answers (2)

BHinkson
BHinkson

Reputation: 334

The above answer is the correct answer, but this might help someone out. If you are stuggling to have your enum stick, you have to enter it in like

enum("thing1","thing2","thing3")

Then hit enter. (Clicking out of the table field doesn't keep your options)

Upvotes: 2

Dmitrii
Dmitrii

Reputation: 3557

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

gif

and

setup

Upvotes: 13

Related Questions