473,398 Members | 2,393 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

Default "usings" statements

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..
Nov 16 '05 #1
1 1908
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\10 33\NewCSharpFile.cs but I
have not verified it.

HTH,

Emil
"Brian" <Br***@discussions.microsoft.com> wrote in message
news:91**********************************@microsof t.com...
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..

Nov 16 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Osvaldo Bisignano | last post by:
I have an important number of using statements that I must write again and again for each element of a proyect. Isn't there any way to centralize this using statements into one, or to set a list...
8
by: Red | last post by:
If auto-format is turned off in VS2008, there is apparently no way to indent a line. Under Tools->Options->Text Editor->C#->Formatting, there are three checkboxes. Unchecking those seems to cause...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.