2

I want to make a custom file template for .cpp and .h files in VC++ 2010 but can't figure out how to do this.

All I want to include in the files that I create is:

/* 
* File:   main.cpp
* Author: NoobiCake
*
* Created on 14. juli 2011, 14:57
*/

int main( int argc, char* args[] ) {
    return 0;
}

It's just like in NetBeans, when you create a new file it includes this in the file.

Anyone know how to do this?
Thanks for any help :)

1 Answer 1

0

A simple way to do it, is to create a macro to insert the desired text, and bind it to a key.

4
  • Is it also possible to insert the current time with macros? Jul 14, 2011 at 14:53
  • i don't know, but i would be surprised if not.
    – EvilTeach
    Jul 14, 2011 at 17:45
  • It appears that VC++ Express Edition don't have user defined macros. Jul 17, 2011 at 11:22
  • Ya. that really rots. looks like no addins either.
    – EvilTeach
    Jul 17, 2011 at 17:50

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.