I want to import the JavaFX docs to VSCode so that it displays the docs in tooltips like with other methods. The link to JavaFX docs is- https://openjfx.io/javadoc/15/ But I don't know how to add it the VSCode
I found an indirect way to do this. We can add the documentation path to the .classpath file of the project. We have to do it manually as there is no way to do this automatically yet.
<classpath>
<classpathentry kind="lib" path="lib/javafx.base.jar">
<attributes>
<attribute name="javadoc_location" value="https://docs.oracle.com/javafx/2/api/"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="lib/javafx.controls.jar">
<attributes>
<attribute name="javadoc_location" value="https://docs.oracle.com/javafx/2/api/"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="lib/javafx.fxml.jar">
<attributes>
<attribute name="javadoc_location" value="https://docs.oracle.com/javafx/2/api/"/>
</attributes>
</classpathentry>
<classpathentry kind="lib" path="lib/jfoenix-9.0.10.jar">
<attributes>
<attribute name="javadoc_location" value="https://javadoc.io/static/com.jfoenix/jfoenix/9.0.10/"/>
</attributes>
</classpathentry>
</classpath>