Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / IDE / February 2005

Tip: Looking for answers? Try searching our database.

can VS automatically add/format code to add/create copyright notice at top of class files?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Flip - 17 Feb 2005 18:06 GMT
As per a suggestion (http://blogs.msdn.com/brada/articles/361363.aspx) I
read, putting copyright notices sounds like a great idea.  However,
implementing this for personal development is a pain. :<  Is there a way to
coax VS to put in a static text block for me whenever it creates a new class
file?

Thanks.
Carlos J. Quintero [.NET MVP] - 18 Feb 2005 10:45 GMT
There are several ways to do and enforce it:

1) You can customize the code template that VS.NET uses for new classes. See
my MSDN KB article:

HOWTO: Changing the source code of templates used by Visual Studio .NET
wizards.
http://support.microsoft.com/default.aspx?scid=kb;en-us;555160

2) You can create an add-in to do it automatically each time a new class is
created. This requires some programming effort and time.

3) With my add-in (below) you can easily:

- Insert a custom template with a single mouse clic or keyboard shortcut.
- Create an external operation to add masively headers to each existing
class. See the External Operations (Extensibility) feature
- Review that each class has the proper header. See the Review Mandatory
Text feature.

Signature

Carlos J. Quintero

MZ-Tools 4.0: Productivity add-ins for Visual Studio .NET
You can code, design and document much faster.
http://www.mztools.com

> As per a suggestion (http://blogs.msdn.com/brada/articles/361363.aspx) I
> read, putting copyright notices sounds like a great idea.  However,
[quoted text clipped - 3 lines]
>
> Thanks.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.