When I create a new C/C++ header file in Visual Studio (2005/2008), I want to have some preprocessor header includes automatically inserted into the new header file. Anybody know how to do this? The New Porject and New Item template system in Visual Studio does not seem to apply to C++ files.
As an example, when I create foo.h, I want the following to be automatoically generated by the new file wizard:
#ifndef FOO_H
#define FOO_H
#endif // FOO_H
Update: The files that Visual Studio uses as templates to create new C++ source files are located in: C:\Program Files\Microsoft Visual Studio 8\VC\vcprojectitems (for Visual Studio 2005). Modifications to these files will be applied to any new files added to a C++ project. However, there does not appear to be a way to paramaterize the content within these files to allow the file name to be insserted etc. The search continues ...