像在IntelliJ中一样在AppCode 3.0中生成文档注释

时间:2014-05-25 19:12:33

标签: objective-c documentation code-generation appcode

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并已进行检查。

1 个答案:

答案 0 :(得分:5)

该功能在AppCode 3.0中不可用,但已在2016.2版本中添加,因此升级将解决您的问题。来自the release notes

  

只需按/ **,/ *即可立即生成Objective-C / C ++方法的文档注释!或///并自动将参数名称插入注释存根。