matthiasblaesing commented on PR #8509:
URL: https://github.com/apache/netbeans/pull/8509#issuecomment-2899083484
You can have multiple inputs for code templates. Have a look at the the
`lkp` java template:
```
${Type} ${obj newVarName default="obj"} = ${lkp
instanceof="org.openide.util.Lookup"
default="Lookup.getDefault()"}.lookup(${Type}.class);
${cursor}
```
After entering `lkp` and triggering expand (by default Tab) you get:

Notice, that `Type` is marked. Now enter the desired type and notice, that
not only the input location is updates, but also the lookup value:

Now press tab, and see that the mark switches to the name of the variable
(in the screenshot I already changed the name, but the marker is still present):

The third tab will bring you to the final possible modification point, the
lookup base:

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists