Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Autogenerate C/C++ function comments in Eclipse

This is a basically duplication of this question. However, I'm looking for the same answer that will work in C/C++ - some easy way to add comments to the functions with descriptions of all of the parameters. It was really easy to do in SLickEdit - just press Ctrl+SHift+D. All the answers and methods for the aforementioned question were for Java.

Thank you.

like image 258
ilya1725 Avatar asked Jan 12 '12 20:01

ilya1725


People also ask

Can I run C code in Eclipse?

Eclipse is popular for Java project development. It also supports C/C++, PHP, Python, Perl, and other web project developments via extensible plug-ins. Eclipse is cross-platform and runs under Windows, Linux and Mac OS.

How do I create a new C project in Eclipse?

Create a new projectGo to Window → Open perspective → Other, select C/C++, and click OK. Go to File → New → C Project, and choose a name for the project (for example, Greeting ). Click Finish to accept all defaults.


1 Answers

Try Doxygen.

You can set it up as follows:

Window->Preferences->C/C++ ->Editor->"Documentation tool"

Here are more details:

A doxygen eclipse plugIn automatically generating stub documentation?

like image 134
paulsm4 Avatar answered Sep 22 '22 15:09

paulsm4