netbeans中的函数头注释

时间:2010-12-01 06:13:53

标签: java netbeans

如何在Netbeans中生成这些函数头注释?是否提供模板以及参数名称的任何快捷方式?

/**
* 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)
{
}

1 个答案:

答案 0 :(得分:24)

在方法,构造函数或字段的上方,键入/**,然后立即按Enter键。 Netbeans应为javadoc生成模板。