[英]How can I quickly create Javadoc links to elements in Eclipse?
I want to easily create links to classes, methods, fields, etc. from within my Javadocs without having to type out the full expression eg, {@link AllowAllHostnameVerifier}
. 我想从我的Javadocs中轻松创建类,方法,字段等的链接,而不必输入完整的表达式,例如
{@link AllowAllHostnameVerifier}
。
What is the fastest way to do this in Eclipse? 在Eclipse中执行此操作的最快方法是什么?
If you don't already have a Javadoc for the element you're documenting, press 如果您还没有要记录的元素的Javadoc,请按
Shift + Alt + J . Shift + Alt + J.
Using the AllowAllHostnameVerifier
example, from within the Javadoc comment where you'd like the link, use autocomplete: Type AAHV
then Ctrl + Space . 使用
AllowAllHostnameVerifier
示例,在您希望链接的Javadoc注释中,使用自动完成:键入AAHV
然后按Ctrl + Space 。
Select {@link AllowAllHostnameVerifier}
from the list of autocomplete options by pressing ↓ then Enter . 按↓然后按Enter,从自动填充选项列表中选择
{@link AllowAllHostnameVerifier}
。
另外,您还可以使用{@link #
Ctrl + Space为当前类中的方法创建方法,或者使用{@link ClassName#
+ Control Space for ClassName中的方法创建方法的链接。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.