Visual Studio 2010 Snippets - current date

I am making a fragment for the file header in Visual Studio 2010. I want the date to match whenever the fragment is executed. Is it possible?

+3
source share
1 answer

As far as I know, you cannot execute any code in a fragment, for example

DateTime.Now()

And there is no other way to do this. I learned this as I tried to do something similar to myself.

Unfortunately!

An alternative is that @AJM suggests writing a macro and assigning it a keyboard shortcut

+4
source

Source: https://habr.com/ru/post/1759359/


All Articles