VS2008 No Item Templates While trying to add a new web form item to a project at a customer, I got the following error: After pressing the OK button I got an empty Add New Item menu: A little scary screen… So I went to the Event Viewer as suggested in the error message and looked at the event in the Application log which was: So I closed all the VS2008 instances I had currently running and tried to regenerate the templates by running the devenv.exe /installvstemplates . That didn’t...
Enabling Xml Schema Validation in Visual Studio The post is a simple tip which will help you to enable Xml schema validation and intellisense while writing an Xml file inside Visual Studio . The Problem Writing Xml files according to a specific Xml schema definition is sometime very hard and can be a very “painful” task for a developer. You need to remember all the small details and elements in order to do it properly. So how can we validate the Xml files while writing them? The Solution Having the...
How to Write Your Own Code Snippets IntelliSense code snippets are a very useful tool for developers in order to write code faster.In the post I’m going to describe how to write your own code snippet and to show an example of a code snippet that I wrote which divides classes by regions in the style that I like. What are Code Snippets? IntelliSense code snippets are basically Xml files that have a strict schema and have a .snippet file name extension. They are used by developers for faster code writing...