开发者

Visual Studio 2010 Snippets - Current Date

开发者 https://www.devze.com 2023-01-11 20:36 出处:网络
I\'m making a snippet for a file header in Visual Studio 2010. I want the date to match whenever the snippet was executed. Is this开发者_如何学JAVA possible?As far as I\'m aware your not able to execu

I'm making a snippet for a file header in Visual Studio 2010. I want the date to match whenever the snippet was executed. Is this开发者_如何学JAVA possible?


As far as I'm aware your not able to execute any code in a snippet, such as

DateTime.Now()

And there is no other way to do it. I've looked into this as I was trying to do something similar myself.

Sorry!

The alternative is as @AJM suggests to write a macro and assign it to a keyboard shortcut

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号