I want to make an intellisense code snippet using Ctl K + Ctl X that actually executes the code when it runs ... for example, I would like to do the following:
<![CDATA[string.Format("{MM/dd/yyyy}", System.DateTime.Now);]]>
But instead of telling me this string value, I need a date in the specified format.
Another example of what I want is creating a new Guid, but truncating the first octet, so I would like to use creating a new Guid using System.Guid.NewGuid (); to give me {798400D6-7CEC-41f9-B6AA-116B926802FE}, but I want the value: 798400D6 from the code snippet.
I am open to not use the Intellisense code snippet. I just thought it would be easy.
source
share