RadicalFx / Radical-VisualStudio-Templates

Radical Framework Visual Studio templates
https://visualstudiogallery.msdn.microsoft.com/5ff17cc4-ecf3-4395-9e18-d4673186e2fe
MIT License
0 stars 0 forks source link

Add snippets to the VSIX package #25

Open mauroservienti opened 9 years ago

mauroservienti commented 9 years ago

http://madskristensen.net/post/shipping-visual-studio-snippets-in-an-extension

mauroservienti commented 9 years ago

the first one:

<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
  <CodeSnippet Format="1.0.0">
    <Header>
      <SnippetTypes>
        <SnippetType>Expansion</SnippetType>
      </SnippetTypes>
      <Title>Radical Property</Title>
      <Author>The Radical Team</Author>
      <Description>Creates a Radical Property</Description>
      <HelpUrl>
      </HelpUrl>
      <Shortcut>rp</Shortcut>
    </Header>
    <Snippet>
      <Declarations>
        <Literal Editable="true">
          <ID>propertyType</ID>
          <ToolTip>The property type</ToolTip>
          <Default>object</Default>
          <Function>
          </Function>
        </Literal>
        <Literal Editable="true">
          <ID>propertyName</ID>
          <ToolTip>The property name</ToolTip>
          <Default>MyProperty</Default>
          <Function>
          </Function>
        </Literal>
      </Declarations>
      <Code Language="csharp" Delimiter="$"><![CDATA[public $propertyType$ $propertyName$
{
    get { return this.GetPropertyValue( () => this.$propertyName$ ); }
    set { this.SetPropertyValue( () => this.$propertyName$, value ); }
}]]></Code>
    </Snippet>
  </CodeSnippet>
</CodeSnippets>
micdenny commented 9 years ago

excellent :smile:

micdenny commented 8 years ago

now we can use CodeSnippetStudio by Alessandro, made in italy :heart: :smile: