02.13 Create Your Own Item Template

WINDOWS

Alt,F, E

MENU

File | Export Template

COMMAND

File.ExportTemplate

VERSIONS

2005, 2008, 2010

LANGUAGES

C#, VB

CODE

vstipProj0013

Have you ever used or created a template in Microsoft Word, Excel, or PowerPoint? Unless you live in a cave, the answer is most likely “yes.” Just as with the Microsoft Office products, you can create and use your own templates in Visual Studio. This tip shows you how to make your own item template. Sometimes you just want to customize an individual item that you use frequently in projects. Class files are a perfect example of this type of scenario. Here’s an example.

Create a new project, and then add a class to it (Ctrl+Shift+A).

Note

The process is the same regardless of which language ...

Get Coding Faster: Getting More Productive with Microsoft® Visual Studio® now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.