gpt4 book ai didi

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

转载 作者:太空狗 更新时间:2023-10-30 03:14:28 25 4
gpt4 key购买 nike

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 并且它被选中了。

最佳答案

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

Generate documentation comments for Objective-C/C++ methods in no time, simply by pressing /**, /*! or /// and have parameter names inserted into the comment stub automatically.

关于objective-c - 像 IntelliJ 一样在 AppCode 3.0 中生成文档注释,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23858982/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com