Reputation: 283
I'm using Visual Studio 2010 for C++ coding. I like to have my header files and cpp files all nicely organized with comment blocks etc and I was wondering if there was someway to automate this process through a template?
When i click add item, i'm given a list of items to add which include a blank .h file and .cpp file but I'd love to be able to customize that to add the ClassName at the top, the ifndef,define block etc.
Any ideas? Thanks!
Upvotes: 2
Views: 1893
Reputation: 70369
not sure whether this is what you are looking for but check this out
The default templates are in C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC\vcprojectitems. Change as appropriate for x86-vs-x64 and VS version.
Upvotes: 4