PC Review


Reply
Thread Tools Rate Thread

Default "usings" statements

 
 
=?Utf-8?B?QnJpYW4=?=
Guest
Posts: n/a
 
      21st Mar 2005
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..
 
Reply With Quote
 
 
 
 
Emil Astrom
Guest
Posts: n/a
 
      22nd Mar 2005
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


"Brian" <(E-Mail Removed)> wrote in message
news:91BAB209-B92A-475F-8437-(E-Mail Removed)...
> 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..



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
In VS2008 need to to change some statements that contain " class=" to " cssclass=" AAaron123 Microsoft VB .NET 2 4th Apr 2009 12:24 AM
Using "IF" and "AND" statements with current time =?Utf-8?B?QmlsbA==?= Microsoft Excel Worksheet Functions 3 18th Apr 2005 08:21 PM
Equivalient of VBScript's "Eval" and "Execute" statements Mike Microsoft ASP .NET 2 4th Oct 2004 11:00 PM
Grayed out buttons use "current" "Default" and "Blank" NS Windows XP Internet Explorer 2 12th Nov 2003 08:24 PM
When doing a "Find" in a form, would like the "Match" to default to "Any Part of Field" =?Utf-8?B?RG9u?= Microsoft Access Forms 2 25th Oct 2003 04:16 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:46 AM.