How to Create a Custom Item Template and Project Template

Web Development Tools Microsoft

When you’re working on a web project, there are times you wish you could have captured all of the stuff you’re working on often and then re-use it later on, similar to code snippet. For example, if you work with JaveScript, HTML5 a lot, you would want to be able to create a new web project that already has a predefined set of jQuery library, or add a new page that already has references to the new HTML5 doctype and the jQuery libary, so you don’t have to constantly modify the page to add those in. You can achieve this by creating your own Item Template and Project Template. Recently, Rey Bango has posted a nice blog about this topic at How to Create HTML5 Website and Page Templates for Visual Studio 2010. Joe Cartano also had a blog about it earlier here Tip #32: Did you know… How to easily create your own project templates?.

After creating your custom Item Template and Project Template, you can organize them so they can appear in the New Project/Web Site, or Add New Item dialog in a structure that makes sense to you. Instruction on how to do this can be found at How to: Locate and Organize Project and Item Templates

Hope it helps!



Discussion is closed.

Feedback usabilla icon