F
F
Fedya2019-09-30 12:53:41
webstorm
Fedya, 2019-09-30 12:53:41

How to implement Live Template in WebStorm?

Hello! Who fumbles in WebStorm?)
In general, I created a Live Template for myself on media query

like this

5d91cf660caa0140732661.jpeg

When using it: @m + Tab
it works
in the following way

5d91cf8f8701a103510116.gif

But I would like that when @m + Tab is called, the cursor is placed on the value 768, but the dropdown sheet with values ​​​​is immediately displayed
similar to here

5d91cfef4c57b091142066.gif

Only the values ​​were those that I will indicate myself:
For example:
"320",
"576",
"768",
"992",
"1200"
and so on.
Could you tell me how to organize this template correctly? Googled, read the documentation on creating a live Template, but didn’t understand the principle of implementation.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
forspamonly2, 2019-10-01
@FedyaAsker

specify expression: enum("320", "576", "768")
however, collisions are possible there, for example, it works for me in css, but not in scss - the popup blinks and immediately closes

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question