Through Maven, I have the source code and JavaDoc both downloaded for libraries used by my code.
I want to select a class name called in my code in the IntelliJ code editor, and then ask IntelliJ to show me the source code for that particular class.
Bonus: Show the JavaDoc for that class.
I thought F1 key would do this, but no so.
If a keyboard shortcut is required, please indicate the macOS version as well as the PC version if known.
Command key, hover mouse, and clickOn a Mac, hold down the Command key. Notice as you move the mouse pointer, the class names change to blue underscored text like an old-school web page link. Click that retro-link while holding down Command.
I am guessing, per comment by Justice, that on a PC you would hold down Control key while hovering/clicking.
No need to select the class name.

Command while hovering mouse pointer
Click the apparent link to open the local copy of class source code.
This approach worked on IntelliJ 2018.1 on macOS Sierra.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With