Editing Code Template in Eclipse to enforce doxygen documentation

367 Views Asked by At

I try to enforce/motivate some fellows to comment their Code so that it becomes more understandable. Therefore, I wanted to use the Template functionality in Eclipse. For now I added the following Template (which is of course not working) using some arbitrary function. I didn't want to do it manually it should be generated AUTOMATICALLY when typing a new method or function.

Template with comment I want and the Prototype of a function it should be placed above when seeing that pattern.

/**
 * @param ${enclosing_method_arguments}
 * @return ${return_type}
 */
${return_type}${enclosing_method}${enclosing_method_arguments}

The desired output is that for each function I get a default Doxygen Command that could be filled out. So its easier to notice that there is something missing. The result should look similar to this:

/**
* @param int a:
* @param int b:
* @return int:
*/

int add(int a, int b){
return a+b

}
0

There are 0 best solutions below