Auto generate comments (documentation) for functions in eclipse CDT
NickName:Ravi Ask DateTime:2012-07-21T21:31:00

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

Copyright Notice:Content Author:「Ravi」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/11592605/auto-generate-comments-documentation-for-functions-in-eclipse-cdt

Answers
Thirler 2013-01-28T12:31:57

If you want the automated filling in of parameters etc, like Eclipse for Java does. \n\nOpen your project properties. Then C++ General. Then select Doxygen as your documentation tool. The type /** as you did to get the fully filled comment.",


Antonio 2016-05-20T14:40:35

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.",


More about “Auto generate comments (documentation) for functions in eclipse CDT” related questions

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...

Show Detail

Eclipse Auto Generate Doxygen Comments Configuration

It seems Eclipse has Doxygen support somewhat natively now. Go to C/C++ -> Editors -> Documentation Tool Comments: Doxygen. However it appears to only act on /** */ comments for auto generating. ...

Show Detail

Eclipse CDT methods comments autogeneration using Doxygen style

Hope this is not a duplicate... It should not since I tried the usual provided fixes. I'm facing problems with the automated generation of comments for Classes and Methods using Elipse CDT (Juno/3...

Show Detail

How to automatically generate function header comments in eclipse-cdt?

Is there a way I can automatically generate the function headers for a function in eclipse cdt ? I have seen related posts which ask to use Alt + Shift + J or type /** before function header and pr...

Show Detail

CDT on hover show documentation

In JDT, if we hover any object, like a function, class, variable etc, eclipse shows the documentation in a tool tip. This documentation is also displayed when the code-assist window shows the

Show Detail

Auto-generate Javadoc comments in Eclipse?

Is it possible to auto-generate Javadoc comments for each method in one class in Eclipse (Indigo)?

Show Detail

Eclipse CDT method auto generation support

When using other IDEs, I usually type non-existent methods which gives an unresolved method/variable error. In the screenshot below, the method Arrangement::check for the specific arguments does not

Show Detail

Does exists auto documentation for eclipse CDT?

I'm searching some plugin for eclipse CDT similar to Atomineer utils. This tool would know / read a method signature (or a class or a property) in c++, read method name and parameters and insert the

Show Detail

CDT Lexer: Get Tokens for comments

I want to write an Editor in my Eclipse Plugin that can handle the language of my tool. The language is based on C/C++ with additional keywords and annotations. I was successfull in writing my own

Show Detail

Auto complete trigger for all alphabets in CDT Eclipse

While using Java with Eclipse, I'm able to do auto activation by entering following in "auto activation triggers" : .abcdefghijklmnopqrstuvwxyz Is there a way to do this in CDT? In CDT, the only

Show Detail