Most companies now requireProgramAdding copyright information to the header of a program file is often in the following format:
/*************************************** *************
*
* Copyright (c) 2007-2008 swollaw
* All Rights Reserved
* Filename: Test
* Description:
* Created by swollaw at 12:38:05
*
**************************************** ************/
A good method is introduced for vs2005 to automatically add the additional information: in the "drive letter \ Program Files \ Microsoft Visual Studio 8 \ common7 \ ide \ itemtemplatescache \ WEB \ CSHARP \ 2052 \ folder contains different item templates. Open webform.zip --> modify codebeside. CS files
(Red indicates the added part)
/*************************************** *************
*
* Copyright (c) 2007-2008 swollaw
* All Rights Reserved
* Filename: $ safeitemname $
* Description:
* Created by swollaw at $ time $
*
**************************************** ************/
Using system;
Using system. Data;
Using system. configuration;
Using system. collections;
Using system. Web;
Using system. Web. Security;
Using system. Web. UI;
Using system. Web. UI. webcontrols;
Using system. Web. UI. webcontrols. webparts;
Using system. Web. UI. htmlcontrols;
Public partial class $ codebesideclassname $: system. Web. UI. Page
{
Protected void page_load (Object sender, eventargs E)
{
}
}
Save and create a new web form in the project to view the expected results!
[ the above is just a simple modification template. If you have more requirements, you can create a custom Visual Studio Project template ]