Create user variable in Intellij File Template
- by Matt Broekhuis
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?