Eclipse Kepler Java Template Doesn't Work With an Indented Brace -
i using kepler , have been trying modify default template "for - iterate on array" @ window > preferences > java > editor > templates. default is:
for (int ${index} = 0; ${index} < ${array}.length; ${index}++) { ${line_selection}${cursor} }
and want indent closing brace have:
for (int ${index} = 0; ${index} < ${array}.length; ${index}++) { ${line_selection}${cursor} }
the change being saved (i can return , see indented brace) when try use in .java file typing "for" popup list shows "for - iterate on array" original non-indented brace , when select default/non-indented brace as:
for (int ${index} = 0; ${index} < ${array}.length; ${index}++) { ${line_selection}${cursor} }
if make other change template such as:
for (int ${index} = 0; ${index} < ${array}.length; ${index}++) { ${line_selection}${cursor} test }
i get:
for (int = 0; < bbpmn2.length; i++) { test }
the new text used (although don't know why blank line) suggests me template being activated. seems can't indented closing brace. wondering if there other "format" setting overriding indentation on closing brace can't find anything. not can see why make difference have tried "use code formatter" turned off , makes no difference.
how can indented closing brace?
thank you. al
Comments
Post a Comment