做一个注释用的代码片段,
<Declarations>
<Literal Editable="true">
<ID>UserName</ID>
<ToolTip>UserName</ToolTip>
<Default>loaderce</Default>
<Function> </Function>
</Literal>
<Literal Editable="true">
<ID>CreateDate</ID>
<ToolTip>创建日期</ToolTip>
<Default> </Default>
<Function></Function>
</Literal>
</Declarations>
<Code Language="csharp">
<![CDATA[///**************************/// 创建者:$UserName$
/// 创建日期:$CreateDate$ ///**************************]]>
</Code>
这里如何获取系统当前时间?
Maybe you can workaround by using visual studio macros.
http://stackoverflow.com/questions/1029189/insert-current-datetime-in-visual-studio-snippet
目前只能用宏命令,建立快捷键绑定到宏
Tools-》Customize>Keyborad>Macros.Samples.VSEditor.InsertDate>your Key>OK