Reputation: 11946
I am working on a Maven Java project using the latest version of IntelliJ CE. I want to be able to view the source code of my Maven dependencies using the IDE's file search tool (ie, ⌘⇧O). However, I am getting both the .java and the .class files for each of the Java class names of a given dependency. Ideally, I only get results for the .java files (source code) instead of the .class files (bytecode). The .class files come from the dependency's JAR file, while the .java file comes from the dependency's sources-JAR file.
Is there any existing way to accomplish this? Thank you.
Upvotes: 1
Views: 503
Reputation: 11946
As answered by Bastien Jansen in the comments, the answer was to use Navigate Class
(⌘O) instead of Navigate File
(⌘⇧O).
Upvotes: 1