[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

How to customise or format the new class template

Posted on 2004-11-15
1
Medium Priority
?
187 Views
Last Modified: 2010-04-15
I seeking to customise the class template when new class is created during C# programming for Visual Studio .net 2003 pro. Can anyone point to specific file location so I can modify them to my format below (mostly comment). This also apply to application window class and so on.

It save me typing for new class created each time.

public class Student
{
//==========================Field

//==========================Constructor
public Student(string name)
      {
      }
//==========================Method

//==========================Properties

//==========================Indexors
}

//==========================Driver
public void main()                  // Driver
{
}
0
Comment
Question by:riscy
1 Comment
 
LVL 6

Accepted Solution

by:
Chester_M_Ragel earned 150 total points
ID: 12582921
If you only want to change the class template file, open

%VS.Net Installation dir%\VC#\VC#Wizards\CSharpAddClassWiz\Templates\1033\NewCSharpFile.cs

take a copy of this file and replace the  it with this,



using System;

namespace [!output SAFE_NAMESPACE_NAME]
{
      /// <summary>
      /// Summary description for Student.
      /// </summary>
      public class Student
      {
            //==========================Field

            //==========================Constructor

            public Student(string name)
            {
            }
            //==========================Method

            //==========================Properties

            //==========================Indexors
      

            //==========================Driver
            public void main()               // Driver
            {
            }
      }
}
0

Featured Post

Important Lessons on Recovering from Petya

In their most recent webinar, Skyport Systems explores ways to isolate and protect critical databases to keep the core of your company safe from harm.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
This video shows how to quickly and easily deploy an email signature for all users in Office 365 and prevent it from being added to replies and forwards. (the resulting signature is applied on the server level in Exchange Online) The email signat…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question