Automatically add additional information, such as copyright information

Source: Internet
Author: User

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 ]

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.