Visual Stdio 新建類或窗體自動添加作者信息

Class.cs源碼:替換路徑見代碼底部.C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplatesCache\CSharp\Code\2052\Class.zip 
/******************************************************************** 
** 作    者:$username$
** 創始時間:$time$
** 修 改 人: 
** 修改時間:
** 修 改 人:
** 修改時間:
** 名    稱: $safeitemname$
** 描    述: $safeitemname$
********************************************************************/
using System;
using System.Collections.Generic;
$if$ ($targetframeworkversion$ >= 3.5)using System.Linq;
$endif$using System.Text;

namespace $rootnamespace$
{
	class $safeitemrootname$
	{
	}
}

 

 Form.cs源碼:替換路徑如下C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplatesCache\CSharp\Windows Forms\2052\Form.zip 

/******************************************************************** 
** 作    者:$username$
** 創始時間:$time$
** 修 改 人: 
** 修改時間:
** 修 改 人:
** 修改時間:
** 名    稱: $safeitemname$
** 描    述: $safeitemname$
********************************************************************/
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
$if$ ($targetframeworkversion$ >= 3.5)using System.Linq;
$endif$using System.Text;
using System.Windows.Forms;

namespace $rootnamespace$
{
	public partial class $safeitemrootname$: Form
	{
		public $safeitemrootname$()
		{
			InitializeComponent();
		}
	}
}


發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章