I want to select an Iterable, press Alt+Shift+Z to get the "Surround With" context menu, and have a foreachwrap template displayed that will wrap the selection in a for each loop with the appropriate format.
For example, i want to select
someObject.getSomeList()
and generate this
for (SomeListType someListType : someObject.getSomeList()) {
}
I've tried something like this, but it doesn't seem to work:
for( ${t:elemType(ls)} ${:name(t)} : ${ls:line_selection} )
{
${cursor}
}