1.head
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>head</Title>
<Shortcut>head</Shortcut>
<Description>创建注释的代码片段</Description>
<Author>WX</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
<Literal>
<ID>Description</ID>
<ToolTip>功能</ToolTip>
<Default>描述</Default>
</Literal>
<Literal>
<ID>Author</ID>
<ToolTip>作者</ToolTip>
<Default>WX</Default>
</Literal>
<Literal>
<ID>CreateTime</ID>
<ToolTip>创建日期</ToolTip>
<Default>@@Today</Default>
</Literal>
</Declarations>
<Code Language="csharp"><![CDATA[
#region 创建描述
/***
* 功能描述: $Description$
* 作 者: $Author$
* 创建时间: $CreateTime$
***/
#endregion
$end$
]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>
2.Debug.Log
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>dl</Title>
<Shortcut>dl</Shortcut>
<Description>Debug.Log 的代码片段</Description>
<Author>WX</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
<Literal Editable="false">
<ID>Debug.Log</ID>
<Function>SimpleTypeName(global::UnityEngine.Debug.Log)</Function>
</Literal>
</Declarations>
<Code Language="csharp"><![CDATA[$Debug$Debug.Log($end$);]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>
3.method
<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>method</Title>
<Shortcut>method</Shortcut>
<Description>method</Description>
<Author>WX</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
<SnippetType>SurroundsWith</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
<Literal>
<ID>Openness</ID>
<Default>public</Default>
<ToolTip>公开性</ToolTip>
</Literal>
<Literal>
<ID>return</ID>
<Default>void</Default>
<ToolTip>返回类型</ToolTip>
</Literal>
<Literal>
<ID>method</ID>
<Default>MyMethod</Default>
<ToolTip>方法名称</ToolTip>
</Literal>
</Declarations>
<Code Language="csharp"><![CDATA[
$Openness$ $return$ $method$($selected$$end$){
}]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>