473,787 Members | 2,932 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Changing the VS 2003 Templates

Is it possible to change the default templates in VS 2003?

Everytime I start a new web method project I have to include a ton of
version control headers and region tags. It would be handy to be able
to alter the default templates to include all of this stuff so I don't
have to each time.

Thanks.
Nov 16 '05 #1
4 1365
Greg,

Yes, it is possible. For VS.NET 2003, there is a directory under the
IDE that has a file, "Class1.cs" . This file is a template that is used in
conjunction with other files (there is a common.js file which sets up
variables I believe) to generate the new files when you select new items.

Unfortunately, I can't remember where the directory is, as I've
uninstalled VS.NET 2003, in favor of VS.NET 2005. The structure is
different in VS.NET 2005, so I can't reference my current installation.

From what I remember, it would be under:

<Program Files>\Microsof t Visual Studio .NET 2003\VC#\CSharp ProjectItems

And then there would be a directory with the Class1.cs file in there.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Greg Merideth" <be*****@forwar dtechnology.net > wrote in message
news:TY******** ************@co mcast.com...
Is it possible to change the default templates in VS 2003?

Everytime I start a new web method project I have to include a ton of
version control headers and region tags. It would be handy to be able to
alter the default templates to include all of this stuff so I don't have
to each time.

Thanks.

Nov 16 '05 #2
Found it, wasn't in the folder but it at least showed me where to look.

It's all the way down in:

<Program Files>\Microsof t Visual Studio .NET
2003\VC#\VC#Wiz ards\CSharpWebS erviceWiz\Templ ates\1033

Thanks. This will save me many hours of cutting and pasting. I've got
some work ahead of me in the beta vs 2005, I'll check the folders in
there as well.

I figured something like this would be part of the VS environment to be
able to change the templates easily.

Nicholas Paldino [.NET/C# MVP] wrote:
Greg,

Yes, it is possible. For VS.NET 2003, there is a directory under the
IDE that has a file, "Class1.cs" . This file is a template that is used in
conjunction with other files (there is a common.js file which sets up
variables I believe) to generate the new files when you select new items.

Unfortunately, I can't remember where the directory is, as I've
uninstalled VS.NET 2003, in favor of VS.NET 2005. The structure is
different in VS.NET 2005, so I can't reference my current installation.

From what I remember, it would be under:

<Program Files>\Microsof t Visual Studio .NET 2003\VC#\CSharp ProjectItems

And then there would be a directory with the Class1.cs file in there.

Hope this helps.

Nov 16 '05 #3
Greg,

In VS.NET 2005, I wouldn't recommend changing the templates in this
manner. There is a much more robust system which allows you to tweak and
modify your own types. There should be a few articles on this on MSDN on
how to do this.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard. caspershouse.co m

"Greg Merideth" <be*****@forwar dtechnology.net > wrote in message
news:et******** ************@co mcast.com...
Found it, wasn't in the folder but it at least showed me where to look.

It's all the way down in:

<Program Files>\Microsof t Visual Studio .NET
2003\VC#\VC#Wiz ards\CSharpWebS erviceWiz\Templ ates\1033

Thanks. This will save me many hours of cutting and pasting. I've got
some work ahead of me in the beta vs 2005, I'll check the folders in there
as well.

I figured something like this would be part of the VS environment to be
able to change the templates easily.

Nicholas Paldino [.NET/C# MVP] wrote:
Greg,

Yes, it is possible. For VS.NET 2003, there is a directory under the
IDE that has a file, "Class1.cs" . This file is a template that is used
in conjunction with other files (there is a common.js file which sets up
variables I believe) to generate the new files when you select new items.

Unfortunately, I can't remember where the directory is, as I've
uninstalled VS.NET 2003, in favor of VS.NET 2005. The structure is
different in VS.NET 2005, so I can't reference my current installation.

From what I remember, it would be under:

<Program Files>\Microsof t Visual Studio .NET 2003\VC#\CSharp ProjectItems

And then there would be a directory with the Class1.cs file in there.

Hope this helps.


Nov 16 '05 #4
Greg Merideth wrote:
Found it, wasn't in the folder but it at least showed me where to look.

It's all the way down in:

<snip>

I have added things to the template script files that also add a
timestamp to the file when added to the project. Let me know if you want
a copy of the code.

--
Lasse Vågsæther Karlsen
http://www.vkarlsen.no/
mailto:la***@vk arlsen.no
PGP KeyID: 0x0270466B
Nov 16 '05 #5

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

Similar topics

5
7421
by: Clifford W. Racz | last post by:
Has anyone solved the issue of translating lists in Word 2003 (WordML) into xHTML? I have been trying to get the nested table code for my XSLT to work for a while now, with no way to get the collection that I need. To begin, I am using xsltproc that conmes with Cygwin as my processor. I have no particular affinity to this processor except that it is open source and standards compliant. I don't like M$, but if using a M$ processing...
6
4240
by: insane79 | last post by:
Hi, i have one problem with an xsl trasformation (I'm using Xalan) The source XML document is the following: <?xml version = '1.0' encoding = 'ISO-8859-1'?> <ROOT xmlns:NAME='old_namespace'> <NAME:element>...</NAME:element> <NAME:element>...</NAME:element>
1
1300
by: rlum | last post by:
I have templates created in 2002 which work great. I installed 2003 on the same machine. I copied the policy files and the vsdir files to the 2003 directory. I do not get the icon for my templates in the add new project directory at all. It still works for 2002. Please help. Thanks in advance. -R
1
1231
by: Brandon Potter | last post by:
Curious if there's a way to change designer defaults in VS.NET 2003; most notably change which font is selected by default for a new Windows Form, etc. Since we're past Windows 3.1 design, the Sans Serif default isn't really that useful to me and I'd just like to change the default to 8pt Tahoma and leave it at that. (Welcome to the era of Tahoma, Verdana, and the Gradient Panel.) :)
7
1309
by: Morten Wennevik | last post by:
A bit non topic but ... When using code blocks which do you prefer while( condition ) { stuff } or while( condition )
3
1426
by: Chuck Bowling | last post by:
is it possible to change the templates used in C#? I want to get rid of some extraneous comments and possibly make alterations to the base code that projects start out with...
5
1612
by: Mark Fox | last post by:
Hello, When you add a new web form in VS.NET it automatically adds the following namespaces at the top: using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing;
1
2231
by: KevinGPO | last post by:
My application was developed under Visual C++ 6.0, ATL, MFC & PlatformSDK Feb2003 (the last VC6 compatible version). I am wondering if PlatformSDK Feb2003 is compatible with Visual Studio.NET 2003? I am having major problems trying to port/build my application under Visual Studio.NET 2003 using the unmanaged/native C++ compiler. I was told that Visual Studio.NET 2003 had native C++ compiler support. I am aware about the new C++ 1999...
0
9497
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10363
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10110
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8993
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7517
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6749
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5398
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5534
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2894
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.