Visual Studio New File Templates

Per jberkhei’s reply on this forum post, here are the locations of the Visual Studio new file templates:

Visual Studio 9

C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplatesCache\CSharp\Web\1033

Visual Studio 8

C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\ItemTemplatesCache\Web\CSharp\1033

Editing these can easily allow you to setup little things that will save you time.

  1. Always change autoeventwireup to false? (FYI, you can also change this in the machine.config, or the web.config)
  2. Always remove the default method, and replace it with an overload of the OnLoad?
  3. Always need to add using directives for certain namespaces?

Then change the template!

Published: May 11, 2009

blog comments powered by Disqus