If, like me, you’re building websites using ASP.NET MVC in Visual Studio 2008 but haven’t taken the time to create your own T4 templates, you can edit the 5 basic ones as follows:
Go to your equivalent of the following:
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\CSharp\Web\MVC\CodeTemplates\
You’ll find the templates for Create, Details, Edit, Empty and List as well as Controllers.
Open the .tt files in your editor of choice, and edit away.
Why bother?
If you’re following Phil Haack’s article on Putting your pages and views on a diet which shows you how to remove the common aspects of views (default language, page & user base type and master page) this is a great place to implement that.
By editing the item templates themselves, you can remove the language tags and any other niggling things. I, for example, always remove the Title=”” from pages as titles are an obligatory page element in many sites.
Hope this helps.