2

Say I want to open java.lang.ClassLoader to see how its methods were implemented.

One method I've found for doing this is by using the Ctrl+Shift+F shortcut, changing Scope to All Places, and typing in the package path above. This will generate a list of classes that reference this package. Clicking a class that uses the package in a field declaration opens up that class, from which I can Ctrl+left_mouse_click the class name, which finally takes me to the desired ClassLoader class.

Is there a less convoluted way of accessing the class?

I've searched on Google, Stackexchange, the IntelliJ documentation, and looked through the menu bar, but haven't found anything so far. I'm sure this must be documented somewhere, but I may not be using the right search terms.

2 Answers 2

2

You can use Navigate -> Go to class... :

enter image description here

and then type in ClassLoader to find it (make sure scope is set to 'All Places'):

enter image description here

The default mapping is Ctrl + N (but I'm using the Eclipse keymap, so for me it's mapped to Ctrl+Shift+T)

Sign up to request clarification or add additional context in comments.

Comments

2

You just need to press CTRL+N

Here is the detailed response Navigate to a Type in IntelliJ

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.