Class/Comment Generation from Header

General questions regarding the usage of CodeLite
jjb
CodeLite Curious
Posts: 1
Joined: Mon Jan 30, 2012 8:09 pm
Genuine User: Yes
IDE Question: c++
Contact:

Class/Comment Generation from Header

Post 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.
User avatar
eranif
CodeLite Plugin
Posts: 6372
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Class/Comment Generation from Header

Post 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
Make sure you have read the HOW TO POST thread
Post Reply