Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Auto generate comments (documentation) for functions in eclipse CDT

I am using eclipse Juno with CDT. I have written a function in a cpp file and I want to add comments for the function. Does CDT supports Auto generate comments by "typing /** then press enter"? In my case the auto generated comments are only as follows.

/**
 * 
 */

As explained here, I even configured to use Doxygen support.Go to C/C++ -> Editors -> Documentation Tool Comments: Doxygen.

I still get the comments as mentioned above. How can I configure eclipse to add comments of my own style?

I changed comments even in Code templates. Go to C/C++ -> Code Style -> Code templates -> Comments. I changed Types, Fields, Methods. Still there is no luck for me.

Can someone assist me on this?

Thanks, Ravi

like image 470
Ravi Avatar asked Jul 21 '12 13:07

Ravi


2 Answers

If you want the automated filling in of parameters etc, like Eclipse for Java does.

Open your project properties. Then C++ General. Then select Doxygen as your documentation tool. The type /** as you did to get the fully filled comment.

like image 138
Thirler Avatar answered Nov 18 '22 03:11

Thirler


For completeness, since it usually works and there was no feedback about any specific problem of the user asking this question, I would like to point to the generally working solution.

like image 28
Antonio Avatar answered Nov 18 '22 02:11

Antonio