Tom Smykowski
Tom Smykowski

Reputation: 26119

How to add date into C# snippet

I would like to add to my c# Visual C# Express (no macros) snippet current date and time tag. How to do it? When I will use intellisense to create code with this snippet I would like to have current date and time put into code.

Upvotes: 3

Views: 6560

Answers (2)

Mike Chaliy
Mike Chaliy

Reputation: 26698

Nothing to do here. This is list of all tree functions that is supported.

Long time ago I saw simple tools that can send key strokes to the active window. Probaly this could work for you.

Upvotes: 0

Matt Jamieson
Matt Jamieson

Reputation: 66

Someone else asked this a few days ago: Insert current datetime in Visual Studio Snippet. Looks like you can't do it, but the macro worked for me.

Upvotes: 5

Related Questions