如何在 Visual Studio 代码中添加依赖项 javadoc?

How do I add dependency javadocs in Visual Studio Code?

我已经在 visual studio 代码中建立了一个 Maven 项目,并提供了 red hat java 支持。一切都很好,除了智能感知不包括函数的 javadoc 描述和我的依赖项中的 类。有没有办法明确 link VSCode 我图书馆的 jdocs?如果可以,我该怎么做?

你可以试试这个:

例如,我有一个项目:

/project
 /lib
  test-1.0.0.jar
 /doc
  test-1.0.0-javadoc.jar

添加你的 .classPath :

<classpathentry kind="lib" path="lib/test-1.0.0.jar">
  <attributes>
    <attribute name="javadoc_location" value="jar:platform:/resource/project/doc/test-1.0.0-javadoc.jar!/" />
  </attributes>
</classpathentry>