Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Generation of documentation comments in AppCode 3.0 like in IntelliJ

Tags:

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.

like image 736
Apan Avatar asked May 25 '14 19:05

Apan


People also ask

How to write comment in IntelliJ?

Add a new commentType /** before a declaration and press Enter . The IDE auto-completes the doc comment for you.

What is JetBrains AppCode used for?

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.

What is AppCode IntelliJ?

AppCode uses the build system bundled in Xcode to build your project and the LLDB distribution bundled in Xcode to debug it.


1 Answers

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.

like image 80
Roy Avatar answered Sep 18 '22 00:09

Roy