using System;
using System.Collections.Generic;
$if$ ($targetframeworkversion$ == 3.5)using System.Linq;
$endif$using System.Text;
Step 4: Modify the file template as per your need.
For example:
/* File Name: * Created On : * Description : */ using System; using System.Collections.Generic; $if$ ($targetframeworkversion$ == 3.5)using System.Linq; $endif$using System.Text; namespace $rootnamespace$ { class $safeitemrootname$ { } }
Step 5 : Save the file. Step 6 : Zip the modified folder with same name (Class.Zip). Step 7 : Replace the older zip file with the new one. Step 8 : Open the command promp (If you are not an Administrator then open it by selecting Run As Administrator). Step 9: Navigate to the IDE path. Here C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE Step 10 : Run devenv.exe / installvstemplate to apply the changes. Now each time we add a new class, we will get the above mentioned header section added to the class. Note : Make sure before changing the template you have closed all your VS application otherwise it may noy be applied correctly. This example is illustrated basing upon Visual Studio 2008 and 32bit machine. May be the paths vary from version to version and machine to machine.
|