Create user variable in Intellij File Template
Posted
by
Matt Broekhuis
on Stack Overflow
See other posts from Stack Overflow
or by Matt Broekhuis
Published on 2010-12-28T07:48:06Z
Indexed on
2010/12/28
7:54 UTC
Read the original article
Hit count: 360
I am trying to use Intellij's file templates (not live templates) to help mitigate how much boilerplate code I use when making Services, daos, and their interfaces.
I am able to use all the system defined variables just fine, such as
${PACKAGE_NAME}
What I want though, is to be able to use my own variable names, like
${MY_USER_INPUT}
however, when i do this like above, I get an error
The documentation says :
It is also possible to specify arbitrary number of custom variables in format ${<VARIABLE_NAME>}.
and then Intellij is supposed to prompt the user for the value.
However, this just plain doesn't work for me. What am I missing?
© Stack Overflow or respective owner