views:

103

answers:

3

I am using Visual Studio 2008, and I was wondering if it was possible to create the .cpp files given the header files.

So if I have a .h files with a class and functions, it can create the code file with all the functions typed in with a blank body

A: 

You can say Project -> Add Class but that only does the basics. I don't think you can do (yet) what you are suggesting but it would be really awesome and there is no reason (that I can think of) why you cannot.

Robert Massaioli
A: 

Try my AtomineerUtils addin.

It won't do an entire header, but can convert a single method's header declaration into an implementation in the related source file. It adds in the class name/namespaces as required, fills in a default implementation where possible (e.g. return(NULL)) and adds a Doxygen or DocXml doc-comment, incorporating and word-wrapping the comment from the header as the brief description if available.

Jason Williams
+2  A: 

You should check the Visual Assist X add-in for Visual Studio. It has lots of features.

Semih
Yes, specifically if you right click on the signature for a method in a `.h` you can select `Refactor (VA X)` then `Create Implementation`.
Dave Tapley