Posted 14 years ago by Jason Whitted - Owner, Etalisoft, LLC
Avatar
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$.
<?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>

Comments (1)

Posted 14 years ago by Actipro Software Support - Cleveland, OH, USA
Avatar
Good find Jason, this is now fixed for the next maintenance release.


Actipro Software Support

The latest build of this product (v2018.1 build 0342) was released 11 days ago, which was after the last post in this thread.

Add Comment

Please log in to a validated account to post comments.