Ben Robbins
Ben Robbins

Reputation: 2630

Automatically adding specified text at beginning of files in VS 2008

Is there a way to have Visual Studio 2008 automatically add heading information to files? For example, "Copyright 2008" or something along those lines. I've been digging through the options, but nothing seems to be jumping out at me.

Upvotes: 3

Views: 288

Answers (2)

Ben Robbins
Ben Robbins

Reputation: 2630

I found a better solution than modifying the template file directly. This utility allows you to create and save header/footer templates and apply them to entire source trees.

C# Header Designer from MSDN Code Gallery

Upvotes: 1

TheSoftwareJedi
TheSoftwareJedi

Reputation: 35236

I assume you'd like to modify the class file templates. They're in:

%ProgramFiles%\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\CSharp\Code\1033

More specific details here

Upvotes: 4

Related Questions