如何快速创建Eclipse中元素的Javadoc链接? [英] How can I quickly create Javadoc links to elements in Eclipse?

查看:161
本文介绍了如何快速创建Eclipse中元素的Javadoc链接?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想从我的Javadocs中轻松创建类,方法,字段等的链接,而不必输入完整的表达式,例如 {@ link AllowAllHostnameVerifier}

I want to easily create links to classes, methods, fields, etc. from within my Javadocs without having to type out the full expression e.g., {@link AllowAllHostnameVerifier}.

在Eclipse中执行此操作的最快方法是什么?

What is the fastest way to do this in Eclipse?

推荐答案


  1. 如果您还没有正在记录的元素的Javadoc,请按
    Shift + Alt + Ĵ

使用 AllowAllHostnameVerifier 示例,在您希望链接的Javadoc注释中,使用自动填充:键入 AAHV 然后 Ctrl + Space

Using the AllowAllHostnameVerifier example, from within the Javadoc comment where you'd like the link, use autocomplete: Type AAHV then Ctrl+Space.

然后输入,从自动填充选项列表中选择 {@ link AllowAllHostnameVerifier}

Select {@link AllowAllHostnameVerifier} from the list of autocomplete options by pressing then Enter.

这篇关于如何快速创建Eclipse中元素的Javadoc链接?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆