Copy KDoc docs from one method to another

我只是一个虾纸丫 提交于 2021-02-07 12:35:51

问题


For the two given methods:

/**
* 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){ .... }

Is there any possibility to copy/link the docs of the second method to be the same with the first one?

Manually copy pasting the KDOC is not so great because if you update one of them there is high chance the second to accidentally be outdated.


回答1:


There is no such feature currently available in KDOC.

Please submit a feature request to YouTrack.

The reference guide for KDOC shows the feature set available.



来源:https://stackoverflow.com/questions/35956535/copy-kdoc-docs-from-one-method-to-another

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!