{"id":2884,"date":"2010-09-23T17:42:58","date_gmt":"2010-09-23T17:42:58","guid":{"rendered":"https:\/\/blogs.msdn.microsoft.com\/webdev\/2010\/09\/23\/how-to-create-a-custom-item-template-and-project-template\/"},"modified":"2010-09-23T17:42:58","modified_gmt":"2010-09-23T17:42:58","slug":"how-to-create-a-custom-item-template-and-project-template","status":"publish","type":"post","link":"https:\/\/devblogs.microsoft.com\/dotnet\/how-to-create-a-custom-item-template-and-project-template\/","title":{"rendered":"How to Create a Custom Item Template and Project Template"},"content":{"rendered":"<p>When you&rsquo;re working on a web project, there are times you wish you could have captured all of the stuff you&rsquo;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&rsquo;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 <a href=\"http:\/\/blog.reybango.com\/2010\/09\/21\/how-to-create-html5-website-and-page-templates-for-visual-studio-2010\/\" target=\"_blank\" rel=\"noopener\">How to Create HTML5 Website and Page Templates for Visual Studio 2010<\/a>. Joe Cartano also had a blog about it earlier here <a href=\"http:\/\/blogs.msdn.com\/b\/webdevelopertips\/archive\/2008\/12\/02\/tip-32-did-you-know-how-to-easily-create-your-own-project-templates.aspx\" target=\"_blank\" rel=\"noopener\">Tip #32: Did you know&#8230; How to easily create your own project templates?<\/a>.<\/p>\n<p>After creating your custom Item Template and Project Template, you can organize them so they can appear in the <strong>New Project\/<\/strong><strong>Web Site,<\/strong> or <strong>Add New Item<\/strong> dialog in a structure that makes sense to you. Instruction on how to do this can be found at <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/y3kkate1.aspx\" target=\"_blank\" rel=\"noopener\">How to: Locate and Organize Project and Item Templates<\/a><\/p>\n<p>Hope it helps!<\/p>\n<p>Thanks,    <br>-Anh<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>When you&rsquo;re working on a web project, there are times you wish you could have captured all of the stuff you&rsquo;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 [&hellip;]<\/p>\n","protected":false},"author":404,"featured_media":58792,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[197],"tags":[],"class_list":["post-2884","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-aspnet"],"acf":[],"blog_post_summary":"<p>When you&rsquo;re working on a web project, there are times you wish you could have captured all of the stuff you&rsquo;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 [&hellip;]<\/p>\n","_links":{"self":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/2884","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/users\/404"}],"replies":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/comments?post=2884"}],"version-history":[{"count":0,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/posts\/2884\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media\/58792"}],"wp:attachment":[{"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/media?parent=2884"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/categories?post=2884"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/devblogs.microsoft.com\/dotnet\/wp-json\/wp\/v2\/tags?post=2884"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}