Skip to content

Browse referenced Java libraries in VS Code

I have VS Code set up with the Java Extension Pack. In the JAVA PROJECTS section of the sidebar I can see the files in my project as well as the referenced .jar files. The last time I used VS Code for Java development (some months ago), I could browse the source code of the referenced libraries, but now nothing happens when I unfold them.

enter image description here

If I open the same project in Eclipse, I can browse the libraries just like I used to in VS Code.

enter image description here

Is browsing referenced libraries no longer available in VS Code, or am I missing a checkmark somewhere?

Edit: I have the source code for the libraries that I’m most interested in browsing (they were developed in-house), and the .classpath file also has references to the source:

<classpathentry kind="lib" path="C:/path/to/package-2.0.2/bin/package.jar" sourcepath="C:/path/to/package-2.0.2-src/">
        <attribute name="javadoc_location" value="jar:file:/C:/path/to/!/"/>


Now it’s not supported to double-click .jar to check inner functions, but we can check by using the .jar class like:

enter image description here