Creating New File Templates in VS 2005


Creating New File Templates in VS 2005

Creating project and item templates in Visual Studio is reasonably well documented. It’s also possible to create New File templates. These are the ones that show up when you choose File/New/File.

Creating these is simple; just copy your file to:
C:\Program Files\Microsoft Visual Studio 8\Common7\IDE\NewFileItems\

After that, restart Visual Studio. That’s it!

For example, I created a file named with an NAnt skeleton (including the proper namespace for IntelliSense) and copied it here.

Your Host:
Copyright © 2000-2013 by William Sorensen. All rights reserved.