How can I quickly create Javadoc links to elements in Eclipse?

后端 未结 2 1584
灰色年华
灰色年华 2021-02-14 12:10

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 AllowAllHostnameVerifie

相关标签:
2条回答
  • 2021-02-14 12:55
    1. If you don't already have a Javadoc for the element you're documenting, press
      Shift+Alt+J.

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

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

    0 讨论(0)
  • 2021-02-14 12:58

    As an addition, you can also create links to methods by using {@link # Ctrl+Space for methods in the current class, or by using {@link ClassName# + Control Space for methods in ClassName.

    0 讨论(0)
提交回复
热议问题