Android Studio 中的 Javadoc @link 引用 [英] Javadoc @link references in Android Studio
问题描述
我正在尝试使用 Android Studio 生成一些 Javadoc.我指的是 {@link #method()}
与链接相同的类中的方法,但我仍然从 Javadoc 中收到 reference not found
错误.我可能忽略了一些非常愚蠢的事情,但我无法弄清楚它是什么.有没有其他人遇到过同样的问题?
I'm trying to generate some Javadocs 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 omitting something very stupid but I cannot figure out what it is. Has anybody else come across the same problem?
推荐答案
在 Android Studio 中的 javadoc 注释中,尝试输入 {@
然后点击 ctrl+space 看看弹出什么...
In Android Studio within a javadoc comment, try typing {@
and then hitting ctrl+space to see what pops up...
选择link
后,点击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屋!