C#:Change the order of Literal in Code Snippet



I have generated a code snippet for a simple function


The function is:-



/// <summary>
/// Description
/// </summary>
public static int function(int obj)
{
return obj;
}


And the Snippet for the code is :-



<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://ift.tt/1h7cX6B">
<CodeSnippet Format="1.0.0">
<Header>
<Keywords>
<Keyword>fpub</Keyword>
</Keywords>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
<Title>fpub</Title>
<Author>shaveta.drake@hotmail.com</Author>
<Description>Generate public method</Description>
<HelpUrl>
</HelpUrl>
<Shortcut>fpub</Shortcut>
</Header>
<Snippet>
<Declarations>
<Literal Editable="true">
<ID>function</ID>
<ToolTip>Name of Function</ToolTip>
<Default>function</Default>
<Function>First Argument</Function>
</Literal>
<Literal Editable="true">
<ID>obj</ID>
<ToolTip>obj</ToolTip>
<Default>obj</Default>
<Function>Second Argument</Function>
</Literal>
<Literal Editable="true">
<ID>int</ID>
<ToolTip>Datatype</ToolTip>
<Default>int</Default>
<Function>Third Argument</Function>
</Literal>
<Literal Editable="true">
<ID>Description</ID>
<ToolTip>Description</ToolTip>
<Default>Description</Default>
<Function>Fourth Argument</Function>
</Literal>
</Declarations>
<Code Language="csharp"><![CDATA[/// <summary>
/// $Description$
/// </summary>
public static $int$ $function$($int$ $obj$)
{
return $obj$;
}]]></Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>


When i implement the snippet,


the default order starts with Desciprion,


whereas i want to start with function


so is there any way i could manage the order of the literals.


No comments:

Post a Comment