Kotlin生成评论文档 [英] Kotlin Generate Comment Doc
本文介绍了Kotlin生成评论文档的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在Java中,我们曾经在方法和一个很好的自动生成的文档出现之前使用/**
. Kotlin无法做到这一点.此功能是否可用,默认情况下处于关闭状态?我如何打开它?
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?
推荐答案
Kotlin文档工具称为 Dokka .您可以使用/**在Java中记录代码.看一下官方文档: https://kotlinlang.org/docs/reference/kotlin -doc.html
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
这篇关于Kotlin生成评论文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文