Generating Kotlin method/class comments

后端 未结 2 1217
予麋鹿
予麋鹿 2020-12-05 13:39

How do you generate comments for your methods/classes? Simply typing:

/**

And pushing enter does not seem to work in IntelliJ IDEA 2016.1.3

2条回答
  •  孤街浪徒
    2020-12-05 13:47

    The @param and other tags are not generated because the recommended documentation style for Kotlin is to refer to parameter names from the doc comment text using the [foo] syntax, rather than to document them using explicit @param tags. You can check the Kotlin standard library documentation to see how this style is used.

提交回复
热议问题