Creating KDoc for methods in Android Studio

When you comment on Java methods in Android Studio, I can enter / ** and AS generates javadoc with method parameters and return type for me. But that doesn't seem to work for Kotlin.

Is there a way to teach AS to automatically generate method documents in the Kotlin KDoc format?

Edit: yes, this question is about the same as a possible duplicate, but my question is not “why?”, I understand that KDoc has a different format. My question is, is there a way to do the same for Kotlin in AS? Maybe there is a way to add / change this template or something like this?

+13
source share
2 answers

Since this is most likely a bug with IntelliJ, I took responsibility for submitting a bug report here . You can view this issue to be notified of any updates.

+2
source

Since January 2019, a plugin came directly from Jetbrains called kdoc-generator.

https://plugins.jetbrains.com/plugin/10389-kdoc-generator

To install this plugin directly in Android Studio, follow this answer:

fooobar.com/questions/133922 / ...

0
source

Source: https://habr.com/ru/post/1012281/


All Articles