Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Live template variables

$
0
0

Hi all,

 

I've got a small question: is it possible to define variables in templates in a way that a variable only needs one value, but can be displayed in multiple ways?

 

For example: if the text is like this:

 

<button id="$var1$">$var2$</button>

 

I want this to be the output:

 

<button id="save">Save</button>

 

So, I'd like to create a template, it should have one input value, but it should once be displayed in lowercase, and once be displayed in uppercase. Is this possible? And if so, do I need one variable (var1) or two (var1, var2) ?

 

thanks, Erik


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>