开发者

How to create custom file templates i VC++ 2010?

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(开发者_StackOverflow中文版 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 :)


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜