Comments
1 comment
-
Hello hamishinglis,
I believe the reasoning for the snippets not working in the comment block is that the parser ignores everything between the comments.
In regards to the list of additional snippets, here are some more:
code = code.Replace("$DATE$", DateTime.Now.ToShortDateString());
code = code.Replace("$TIME$", DateTime.Now.ToShortTimeString());
code = code.Replace("$USER$", Environment.UserName);
code = code.Replace("$MACHINE$", Environment.MachineName);
Best Regards,
Steve
Add comment
Please sign in to leave a comment.
Also i noticed that snippets do not work if you are inside a /* */ block ? which is sad since in means you can't have a snippet for update comments like your name, the date etc.. so it always makes a consistent comment block. Is there a reason for this?