M
M
Mark Golubev2015-12-08 11:45:06
phpstorm
Mark Golubev, 2015-12-08 11:45:06

How to create a live template in php storm with dynamic variables?

I have been using "live templates" for a long time, which save my time well from unnecessary copy-paste. The question arose of how to create a more complex template, during the initialization of which the handler would define input variables and use them when displaying the template. I'm making a template with a phrase class()that will insert for me: var MyClass = function() { ... }
What I want :
I want to use the phrase class( "className" )and get var "className"= function() { ... }.
Please help with an example

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question