[Shortcut element]
Specifies the shortcut text used to insert the snippet. The text value of a Shortcut
element can only contain alphanumeric characters, and underscores ( _ ).
< Shortcut>
mycodesnippet
< /Shortcut>
------------------------------------------------------------------
[SnippetTypes element]
SurroundsWith: allows the code snippet to be placed around a selected piece of code.
Expansion: allows the code snippet to be inserted at the cursor.
--------------------------------------------------------------------
[Literal element]
< Declarations>
< Literal>
< ID>Number< /ID>
< ToolTip>Choose the number you want the square root of.< /ToolTip>
< Default>16< /Default>
< /Literal>
< /Declarations>
< ![CDATA[
double root = Math.Sqrt($Number$);
]] >
inserted as:
double root = Math.Sqrt(16);
with 16 highlighted for replacement with tooltip
Copied to Clipboard.