Is there any way in AppCode 3.0
to generate documentation comments like in IntelliJ
?
For example, in IntelliJ
I can type a method:
public int method(float number){
// magic
}
And when above it, I will type: /**
, IDE will generate me code like this:
/**
*
* @param number
* @return
*/
public int method(float number){
// magic
}
In AppCode 3.0
after doing similar trick, I only get something like this:
/**
*
*/
- (int)method:(float)number;
I have checked Preferences/Smart Keys/Insert documentation comment stub
and it is checked.
Add a new commentType /** before a declaration and press Enter . The IDE auto-completes the doc comment for you.
What is AppCode? JetBrains AppCode is an IDE for iOS/macOS development. In addition to working with Objective-C, Swift and C/C++ programming languages, it supports web technologies such as JavaScript, HTML, XML, CSS, and more.
AppCode uses the build system bundled in Xcode to build your project and the LLDB distribution bundled in Xcode to debug it.
The feature wasn't available in AppCode 3.0, but has been added in version 2016.2 so upgrading will fix your issue. From 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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With