The Artima Developer Community
Sponsored Link

.NET Buzz Forum
Remove default comments in C# files

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Jeff Key

Posts: 481
Nickname: jeffreykey
Registered: Nov, 2003

Jeff Key is legally sane, but questionably competent.
Remove default comments in C# files Posted: Mar 30, 2004 6:26 PM
Reply to this message Reply

This post originated from an RSS feed registered with .NET Buzz by Jeff Key.
Original Post: Remove default comments in C# files
Feed Title: Jeff Key
Feed URL: http://www.asp.net/err404.htm?aspxerrorpath=/jkey/Rss.aspx
Feed Description: Topics revolve around .NET and the Windows platform.
Latest .NET Buzz Posts
Latest .NET Buzz Posts by Jeff Key
Latest Posts From Jeff Key

Advertisement

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.)

Read: Remove default comments in C# files

Topic: FxCop 1.30 Previous Topic   Next Topic Topic: Xbox price drop

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use