Does anyone know of a way that I can insert the current date & time in a visual studio 2008 snippet? What I want is something like this in the body of my .snippet file...
<Code Language="csharp">
<![CDATA[
// $DateTime$
// more code here for my snippet...
</Code>
There are no DateTime functions available for snippets but here is a macro that will insert the current DateTime:
You can open your macro explorer with Alt + F8 and create a new module and paste the code above inside the module that is generated.
Then create a new keyboard shortcut and bind it to your macro.