How do I add dependency javadocs in Visual Studio Code?

送分小仙女□ 提交于 2021-01-29 14:18:09

问题


I've set up a maven project in visual studio code with the red hat java support. Everything works great, except that the intellisense doesn't include the javadoc descriptions for the functions and classes from my dependency. Is there a way to explicitly link VSCode to my library's jdocs? If so, how do I do it?


回答1:


you could try this:

for example, i have a project :

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

add in your .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>


来源:https://stackoverflow.com/questions/56487969/how-do-i-add-dependency-javadocs-in-visual-studio-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!