Snippets/Function/function1.snippets.ps1xml
<?xml version='1.0' encoding='utf-8' ?>
<Snippets xmlns='http://schemas.microsoft.com/PowerShell/Snippets'> <Snippet Version='1.0.0'> <Header> <Title>function1</Title> <Description>a very simple function body</Description> <Shortcut>func1</Shortcut> <Keywords>Comment,Parameter,Attribute,Pipeline,ScriptBlock,Editor,Console</Keywords> <Author>Tobias</Author> <SnippetTypes> <SnippetType>Expansion</SnippetType> <SnippetType>SurroundsWith</SnippetType> </SnippetTypes> </Header> <Declarations> <Literal> <ID><![CDATA[9;13;0]]></ID> <Default></Default> <ToolTip><![CDATA[Name of function]]></ToolTip> <ToolTipStatusbar><![CDATA[Name of function]]></ToolTipStatusbar> </Literal> <Literal> <ID><![CDATA[31;26;0]]></ID> <Default></Default> <ToolTip><![CDATA[Function Body]]></ToolTip> <ToolTipStatusbar><![CDATA[Function Body]]></ToolTipStatusbar> <EncloseSelection>true</EncloseSelection> </Literal> </Declarations> <Code> <Script Language='PowerShell' CaretOffset='62'> <![CDATA[function Get-Something { # Place Function Body Here }]]> </Script> </Code> </Snippet> </Snippets> |