Posted 19 years ago
by Jason Whitted
-
Owner,
Etalisoft, LLC
The code snippet is not respecting the $end$ location if there are no declarations (literals/objects).
After executing the following code snippet, the caret is positioned after the closing wavy-brace. It should be at $end$.
After executing the following code snippet, the caret is positioned after the closing wavy-brace. It should be at $end$.
<?xml version="1.0" encoding="utf-8" ?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>else</Title>
<Shortcut>else</Shortcut>
<Description>Code snippet for else statement</Description>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<!--
had to use 'C0de' because 'Code'
interfered with the rendering.
-->
<C0de Language="csharp"><![CDATA[else
{
$end$
}]]>
</C0de>
</Snippet>
</CodeSnippet>
</CodeSnippets>