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
Function header comments in netbeans
提问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 生成模板。