2010-12-01 80 views
6

如何在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) 
{ 
} 

回答

18

只是上面的方法,構造函數或字段中,鍵入/**並按下立即進入關鍵跟進。 Netbeans應該爲javadoc生成模板。

+0

我花了很多時間尋找這個。非常感謝!!! – user3885927 2016-07-26 23:11:42