473,322 Members | 1,690 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,322 software developers and data experts.

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 1344
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>\Microsoft Visual Studio .NET 2003\VC#\CSharpProjectItems

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.com

"Greg Merideth" <be*****@forwardtechnology.net> wrote in message
news:TY********************@comcast.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>\Microsoft Visual Studio .NET
2003\VC#\VC#Wizards\CSharpWebServiceWiz\Templates\ 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>\Microsoft Visual Studio .NET 2003\VC#\CSharpProjectItems

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.com

"Greg Merideth" <be*****@forwardtechnology.net> wrote in message
news:et********************@comcast.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>\Microsoft Visual Studio .NET
2003\VC#\VC#Wizards\CSharpWebServiceWiz\Templates\ 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>\Microsoft Visual Studio .NET 2003\VC#\CSharpProjectItems

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***@vkarlsen.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
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...
6
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...
1
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...
1
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...
7
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
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
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...
1
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...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.