Is it possible to show the source library of an annotation?
I'm new to Java web application development, and I'm diving straight in with all the usual libraries I see in various tutorials, including lots of Spring, and Lombok. As I paste sample code into my editor, and resolve the various imports I need, I wonder if it would be possible to "dereference" an annotation to see where it comes from. I'd like to be able to hover over, say, @Getter, and see that it comes from the Lombok jar.
For instance, I'm currently looking at @ManyToMany. I can change my import from `import javax.persistence.*` to `import javax.persistence.Entity`, and notice that my references to @ManyToMany, @JoinTable, and @JoinColumn all suddenly won't resolve in the editor, so I can infer that these annotations are defined in javax.persistence, but it would be nice to be able to see this more directly. Is it possible to configure the IDE to show this on a hover or a hint?
Please sign in to leave a comment.
Hi. Please try View | Quick definition:
https://www.jetbrains.com/help/idea/viewing-definition.html
So ⌥␣, F1, and holding down ⌘ will all give me this information. That's exactly the kind of thing I was looking for!