Modify A visual studio Template

Source: Internet
Author: User

Recently, every page requires using to reference space, which is annoying.

I searched it and it could be changed.

The method is as follows:

1. Open the directory where Visual Studio 2008 is installed and find the ItemTemplates folder, for example:

C: \ Program Files \ Microsoft Visual Studio 9.0 \ Common7 \ IDE \ ItemTemplates

If you want to modify the default namespace of the Winfows Form class, open

C: \ Program Files \ Microsoft Visual Studio 9.0 \ Common7 \ IDE \ ItemTemplates \ CSharp \ Windows Forms \ 2052

2. Decompress Form.zip and modify the content of the form. cs file. For example, add a line

Using System. Data. SqlClient;

Then compress the file into a zip file, and then compress it under the form folder to overwrite the original form.zip file.

3. Finally, open the Visual Studio 2008 command prompt and execute

Devenv/InstallVsTemplates

Other projects are similar

Related Article

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.