Tuesday, April 20, 2010

Technical: To create customized class file template in Visual Studio.

Hi Friends,

We can create customized templates for Visual Studio. Please find below the steps for customized class file template.

Steps:
1. Create an Empty Project.
2. Add class file.
3. Write the necessary statements in this file which you want every time you create new class file. Save the project.
4. Go to File Menu -> Export Template...
5. It will give us a zip file.
6. Copy this file to the location: Visual Studio 2008/Templates/Project Templates/Visual C# [If you are using C#, o/w corresponding language folder.]
7. Now Open a new project & click on Add Item. You can see this new template in the Add Item dialog Box for that language.

This example gives ‘class' file template. You can customize any item type.
 
Thank You.
 
Happy Coding..!! :-)

No comments:

Post a Comment