Android Studio中的Javadoc @link引用 [英] Javadoc @link references in Android Studio
问题描述
我正在尝试使用Android Studio生成一些javadoc。我在{@link #method()}中使用与链接相同的类中的方法,但我仍然从javadoc获得引用未找到
错误。我可能会忽略一些非常愚蠢但我无法弄清楚它是什么的东西。是否有人遇到同样的问题?
I'm trying to generate some javadoc with Android Studio. I'm referring with {@link #method()} a method in the same class as the link but I still get a reference not found
error from javadoc. I'm probably omiting something very stupid but I cannot figure out what it is. Does anybody came across with the same problem?
推荐答案
在javadoc评论中的Android Studio中,尝试输入 {@
然后按 ctrl + space 查看弹出的内容......
In Android Studio within a javadoc comment, try typing {@
and then hitting ctrl+space to see what pops up...
选择链接
后,点击 space 。
现在尝试 ctrl + space 再次获取所有可能类的列表。
Now try ctrl+space again for a list of all possible classes.
仅引用当前的方法/数据类,键入#然后 ctrl + space 查看可能是您想要的列表。
To just make a reference to a method/data within the current class, type # and then ctrl+space to see a list of probably-what-you-want.
不要忘记确保括号已关闭!
Don't forget to make sure the brackets are closed!
这篇关于Android Studio中的Javadoc @link引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!