Visual Studio tips to build code templates with their own identities

Source: Internet
Author: User
Tags visual studio

Probably through a lot of blog introduction, we all know the use of code snippets, using code snippets can easily generate some commonly used code format, it is really convenient for us to develop. In team development or in some cases, we may also want to use Visual Studio generated code to automatically carry some information, such as the creation time of the code file, the description of the code and reference to the namespace, and so on, in fact this feature is confirmed by the weekly public in visual STUDIO2005 is supported in the above version.

The following is illustrated in the case of the weekly public notebook, which is installed on the C disk in the Dell 1425 on the system disk and Visual Studio 2005 and Visual Studio 20,082 Visual Studio and a genuine SQL Server 2005 is installed because the system disk often switches between Windows XP and Windows 7 and also wants to share certain personal configurations between Windows XP and Windows 7. So my document directory set to the system's last disk G disk, the specific path for G:\My documents, if not a special configuration should be C:\Documents and settings\zhoufoxcn\my documents, this particular attention.

For Visual Studio 2008来, first we open C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE This directory (if you are using Visual Studio 2005 the corresponding path is C:\Program Files\Microsoft Visual Studio 8\Common7\IDE) and you can see the following:

As you can see from the image above, the ItemTemplates and Projecttemplates folders are selected by Zhou, because this folder is useful to us. The ItemTemplates file contains the templates that we add to the project, and the Projecttemplates folder is the template that we create the project by definition. The templates in these folders will appear when we create a file or project, respectively.

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.