AppCode 3.0
中是否有任何方法可以生成IntelliJ
中的文档注释?
例如,在IntelliJ
我可以输入一个方法:
public int method(float number){
// magic
}
当它高于它时,我将输入:/**
,IDE将生成如下代码:
/**
*
* @param number
* @return
*/
public int method(float number){
// magic
}
在AppCode 3.0
做类似技巧之后,我只得到这样的东西:
/**
*
*/
- (int)method:(float)number;
我已查看Preferences/Smart Keys/Insert documentation comment stub
并已进行检查。
答案 0 :(得分:5)
该功能在AppCode 3.0中不可用,但已在2016.2版本中添加,因此升级将解决您的问题。来自the release notes:
只需按/ **,/ *即可立即生成Objective-C / C ++方法的文档注释!或///并自动将参数名称插入注释存根。