写了如下snippet 文件,在使用的时候“Update Date”的时间自动是默认的“2006/08/04”,
每次使用的时候都要修改,怎么能够得到即刻的时间?
另外:“Update Revision”也是默认的,也要改,如果我想按照递增的方式自动生成此号码,即对同一个文件,使用次自动注释更能一次,其号码就自动增加一个单位。又该怎么做?
麻烦NN帮助顶下,该怎么解决
先谢谢了<?xml version="1.0" encoding="utf-8"?>
<CodeSnippets xmlns="http://schemas.microsoft.com/VisualStudio/2005/CodeSnippet">
<CodeSnippet Format="1.0.0">
<Header>
<Title>log declaration</Title>
<Shortcut>log</Shortcut>
<Description>log declaration</Description>
<Author>Liql</Author>
<SnippetTypes>
<SnippetType>Expansion</SnippetType>
</SnippetTypes>
</Header>
<Snippet>
<Declarations>
        <Literal>
          <ID>Author</ID>
          <ToolTip>Author update the file</ToolTip>
          <Default>Liql</Default>
        </Literal>
        <Literal>
          <ID>Update_Date</ID>
          <ToolTip>Update Date</ToolTip>
          <Default>2006/08/04</Default>
        </Literal>
        <Literal>
          <ID>Purpose</ID>
          <ToolTip>the purpose of updating this file</ToolTip>
          <Default>Purpose</Default>
        </Literal>
        <Literal>
          <ID>Revision</ID>
          <ToolTip>the revision of updating this file</ToolTip>
          <Default>1.00</Default>
        </Literal>
        <Literal>
          <ID>Log</ID>
          <ToolTip>the log of updating this file</ToolTip>
          <Default>log</Default>
        </Literal>
</Declarations>
<Code Language="csharp">
  <![CDATA[
/***Update Log********************************************************
*   Last Update      :$Author$
*   Update Date      :$Update_Date$
*   Purpose          :$Purpose$
*   Update Revision  :$Revision$
*   Update Log       :$Log$
************************************************************************/ 
]]>
</Code>
</Snippet>
</CodeSnippet>
</CodeSnippets>