Class template making:
Path: C:\Program Files\Microsoft Visual Studio 10.0\common7\ide\itemtemplatescache\csharp\code\2052\class.zip
Action: Open the Class.cs file and edit the contents as follows:
//<copyright file= "$safeitemname $.cs" company= "Fengjin" >//creation Time: $time $//</copyright>usingSystem;usingsystem.collections.generic;$if$ ($targetframeworkversion $ >=3.5)usingSystem.Linq; $endif $usingSystem.Text;namespace$rootnamespace ${/// <summary> ///$itemname $ class/// </summary> Public class$safeitemrootname $ {}}View Code
There is a thing, do not know what is, at present I call it variable bar. The specific meanings of some variables are listed below:
$safeitemname $: File name
$time $: Time
$clrversion $:CLR Version
$itemname $: Class name
$machinename $: Machine name
$rootnamespace $: namespace
VS2010 Code Template Authoring