Default "usings" statements

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Is there a way to change the default "using" statements that are created by
Visual Studio when you create a new class? Do I have to create a new file
type? So, instead of choosing "New -> Class" I would have to choose "New ->
MyClass".

Basically, I want to add "Using System.IO;" and "Using System.Diagnostics"
so that when I create a new class, they will automatically show up. VS
Macro??

Help..
 
It can be changed by modifying the template files. Have a look at
http://www.codeproject.com/dotnet/vs_templates.asp

For simple classes I believe the template file is C:\Program Files\Microsoft
Visual Studio .NET
2003\VC#\VC#Wizards\CSharpAddClassWiz\Templates\1033\NewCSharpFile.cs but I
have not verified it.

HTH,

Emil
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top