问题
With Java we used to use /**
before a method and a nice auto-generated doc would just appear. Can't do the same with Kotlin. Is this feature available, turned of by default? How can i turn it on?
回答1:
Kotlin documentation tools is called Dokka. You can document your code as in java with /**. Take a look to the official docs: https://kotlinlang.org/docs/reference/kotlin-doc.html
来源:https://stackoverflow.com/questions/38079234/kotlin-generate-comment-doc