将KDoc文档从一种方法复制到另一种方法

Dio*_*lor 8 kotlin kdoc kotlin-dokka

对于两种给定的方法:

/**
* Adds a [DataItem] to the Android Wear network. The updated item is synchronized across all devices.
*/
fun putItem(){ .... }

/**
* "same KDOC here with above"
*/
fun putItem(putRequest: PutDataRequest){ .... }
Run Code Online (Sandbox Code Playgroud)

有没有可能复制/链接第二种方法的文档与第一种方法相同?

手动复制粘贴KDOC并不是那么好,因为如果你更新其中一个,很有可能第二个意外地过时.

Jay*_*ard 5

KDOC当前没有此类功能。

请向YouTrack提交功能请求。

用于KDOC参考指南显示的功能组。