java netbeans 中的函数头注释

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4321715/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-30 05:50:43  来源:igfitidea点击:

Function header comments in netbeans

javanetbeans

提问by Nemo

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?

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

回答by gigadot

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

在方法、构造函数或字段的正上方,键入/**并立即按回车键。Netbeans 应该为 javadoc 生成模板。