Remove default comments in C# files
Jeff Key
Tuesday, March 30, 2004
Comments

How many thousand times have you created a new C# class, then deleted the “Add constructor logic here“ and/or the default, useless XML Documentation comment?  Far too many, I'm sure.

Solving this problem is simple:  Remove them from the template that's used to generate new classes.  The file is found at the following location (VS.NET 2003):

%programfiles%\Microsoft Visual Studio .NET 2003\VC#\VC#Wizards\CSharpAddClassWiz\Templates\1033

Other templates are scattered around below the %programfiles%\Microsoft Visual Studio .NET 2003\VC# directory.  Simply do an in-file search for “///“ and you'll find several more.

(I think EricGu or someone else posted something about this a while ago, but I can't find the post.)


You might also be interested in my .NET development tools, samples, etc. (All free, of course!)