Live-Template question
I want to create a live-template to create simple count-loops. Looks like:
for(int $INDEX$ = 0; $INDEX$ < $NUM$; $INDEX$++) {
$END$
}
with
$INDEX: suggestIndexName()
$NUM: variableOfType(int)
If I use the template, it always chooses the index variable for $NUM what of course isn't what I want, it should choose the nearest integer variable outside the new for-loop.
Any suggestions?
Please sign in to leave a comment.
You could try moving INDEX down to below NUM in Edit Variables.
Karsten Wagner wrote:
Don't works. It always chooses the variable it created for $INDEX as default.