Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse XML Template with multiple ${cursor}?

I am writing some XML templates to speed up writing schemas. I was wondering if it is possible to do a "create element" with multiple cursor locations akin to Eclipse generating a method in a java class which allows you to tab through the return type, method name, and parameters (they appear selected by a rectangle).

Here is the template I tried out:

<xs:element name="${cursor}" type="${cursor}" />

It moves the cursor to the name attribute, but I can't tab to the type attribute. Is there a way to do this with xml in eclipse?

like image 697
Gaʀʀʏ Avatar asked Oct 28 '25 05:10

Gaʀʀʏ


1 Answers

Extracted from eclipseonetips, it works for me:

<xs:element name="${whateverUniqueNameYouWant}" type="${cursor}" />
like image 122
ATorras Avatar answered Oct 31 '25 02:10

ATorras