problem in eclipse plugin
Posted: Fri Sep 09, 2005 9:03 am
I'm having the following problem using code templates running Oxygen 6.1 in Eclipse 3.1 using the plugin:
Assume that I've just hit the enter key and my cursor has automatically indented itself to the Nth tab. I type the name of the code template and hit ctrl + space and the name is replaced replaced by the template code and my cursor is placed in the appropriate position. My problem is that the first (and possible only) line of code from the newly inserted template has moved itself one tab to the left (Nth - 1) with any enclosing tags appropriately indented to the Nth + 1 tab and with the closing tag indented to the Nth.
Examples:
I only experience this problem when working with the Eclipse plugin and have been experiencing it since the first time I used it.
I've toggled nearly every concievable boolean option in the preferences dialog to no avail. Please Help.
Thanks.
Assume that I've just hit the enter key and my cursor has automatically indented itself to the Nth tab. I type the name of the code template and hit ctrl + space and the name is replaced replaced by the template code and my cursor is placed in the appropriate position. My problem is that the first (and possible only) line of code from the newly inserted template has moved itself one tab to the left (Nth - 1) with any enclosing tags appropriately indented to the Nth + 1 tab and with the closing tag indented to the Nth.
Examples:
Code: Select all
<xsl:choose>
<xsl:when test="${caret}">
</xsl:when>
<xsl:otherwise>
</xsl:otherwise>
</xsl:choose>
Code: Select all
<xsl:call-template name="${caret}">
<xsl:with-param name="" select=""/>
</xsl:call-template>
I've toggled nearly every concievable boolean option in the preferences dialog to no avail. Please Help.
Thanks.