Missing basic JavaDoc in Eclipse

后端 未结 5 1212
逝去的感伤
逝去的感伤 2021-02-19 16:40

Up to a few days ago, Eclipse was working fine in locating the javadoc for base classes such as Java.io.File. Recently, though, hovering over these classes only yields a message

5条回答
  •  自闭症患者
    2021-02-19 17:10

    Press ctrl+click (or command+click if you're on a Mac) on any method which doesn't have javadocs. For example, in this line:

    System.out.println();
    

    ... assuming that no javadocs are available for println, control-clicking on println will open a new tab with a button labeled "Attach Source...". And that's it!

提交回复
热议问题