Page 1 of 1

Class/Comment Generation from Header

Posted: Mon Jan 30, 2012 8:16 pm
by jjb
Nvmnd, I have it figured out. Right click on the code in the .h file and there is a code generation tab.
-------------------------------------------------------------------
Is there any feature to generate a .cpp file if I write the header file? What about automatically generating comments for a header file? I'm extremely new to c++ so I'm not sure what features are available / reasonable.

Thanks,

J.

Re: Class/Comment Generation from Header

Posted: Tue Jan 31, 2012 4:03 pm
by eranif
jjb wrote:Is there any feature to generate a .cpp file if I write the header file?
If you only have a header file, you can click F12 -> codelite will offer to create an empty C++ file for your.

Once you have a C++ file, you can right click inside the .h file (place the mouse somewhere in class body) and then "right click -> code generation -> implement all unimplemented functions"
This will open a dialog and all the generated code -> click OK if you agree with the content (you can modify it)
jjb wrote:What about automatically generating comments
Place the caret on a function name in a header file (or implementation) and click Ctrl+Shift+D OR right click -> code generation / refactoing -> Generate Doxygen Comment

Eran