Skip to content

Instantly share code, notes, and snippets.

@icalderond
Created March 18, 2020 20:01
Show Gist options
  • Save icalderond/f61a77692b07115785835d0ae6b33b23 to your computer and use it in GitHub Desktop.
Save icalderond/f61a77692b07115785835d0ae6b33b23 to your computer and use it in GitHub Desktop.
Snippets for Visual Studio
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>propfullqs</Title>
<Shortcut>propfullqs</Shortcut>
<Description>Fragmento de código para la propiedad y el campo de respaldo para QuarkSoft</Description>
<Author>Israel Calderon de la Cruz</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
<Literal>
<ID>type</ID>
<ToolTip>Tipo de propiedad</ToolTip>
<Default>int</Default>
</Literal>
<Literal>
<ID>property</ID>
<ToolTip>Nombre de la propiedad</ToolTip>
<Default>MyProperty</Default>
</Literal>
</Declarations>
<Code Language="csharp"><![CDATA[private $type$ _$property$;
public $type$ $property$
{
get => _$property$;
set => Set(ref _$property$, value);
}
$end$]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>region_qs</Title>
<Shortcut>region_qs</Shortcut>
<Description>Fragmento de código para una region personalizada de QuarkSoft</Description>
<Author>Microsoft Corporation</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
<Literal>
<ID>nameRegion</ID>
<ToolTip>Alias de la región a crear</ToolTip>
<Default>NombreRegion</Default>
</Literal>
</Declarations>
<Code Language="csharp"><![CDATA[#region [ $nameRegion$ ]
$end$
#endregion [ $nameRegion$ ]]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment