Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Function header comments in netbeans

Tags:

java

netbeans

How to generate these kind of function header comments in Netbeans? Is the any shortcut that would give a template along with the parameter names?

/**
* Performs the Decrease Key operation
* @param index Index of the node in the RefArray whose key is to be decreased
* @param amount Amount by which key is to be reduced
*/
public void decreaseKey(int index, int amount)
{
}
like image 752
Nemo Avatar asked Dec 01 '10 06:12

Nemo


1 Answers

Just above the method, constructor or field, type /** and follow by pressing enter key immediately. Netbeans should generate template for javadoc.

like image 178
gigadot Avatar answered Nov 15 '22 19:11

gigadot