IntelliJ IDEA jump from interface to implementing class in Java

JavaClassInterfaceKeyboard ShortcutsIntellij Idea

Java Problem Overview


Is there some shortcut that would allow me after creating method in an interface, select and jump to implementing class of that interface?

Java Solutions


Solution 1 - Java

Yes, On mac, it is Command + Option + B. You will need to move your cursor to the interface name before invoking the shortcut. I'm not sure what's the shortcut in PC, for if you right click the interface name -> "Go To" -> "Implementations"... the shortcut is listed there.

In Windows, it is CTRL + ALT + B: JetBrains navigation documentation.

Solution 2 - Java

In addition to Ctrl + Alt + B mentioned above, you can also use the mouse: Ctrl + Alt + LeftMouseButton to jump directly to implementations.

Solution 3 - Java

If you did Command (Mac) / Ctrl (Windows) + Mouse click on method you want to navigate to You will be navigated to interface (Declaration)

but If you did Alt + Ctrl + Mouse click on method you want to navigate to You will be navigated to class (Implementation)    you can use also Alt + Ctrl + b if you dont want leave keybourd

Solution 4 - Java

On OSX you can jump to the implementation with your mouse by using Alt + Command + Mouse. (comparable with Ctrl + mouse in Eclipse)

Solution 5 - Java

If you do not know the shortcut for a specific IntelliJ Command, press Ctrl + Alt + A (or Apple + Alt + A on Mac). That will open a pop-up that allows you to search for all shortcuts. Alternatively, you can access it using the Find Action... from the Help menu.

Moreover, there is the Default Keymap Reference also available from the Help menu (that among other shortcuts contains the shortcut to the Find Action... described above).

Lastly, you can configure your own keyboard shortcuts (and see the current settings) in the Preferences -> Keymap setting.

Solution 6 - Java

On MacOs: cmd + (option) + B

Solution 7 - Java

To go to the declaration of a symbol, press Ctrl + B. For example, pressing this on a variable will take the cursor to the variable declaration.

Using it on a class name will open a new tab and take you to the class file. With ⌥ + ⌘ + B on MacOS and Ctrl+Alt+B on [Windows/Linux], you can navigate to an implementation too.

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionMatBanikView Question on Stackoverflow
Solution 1 - JavalimcView Answer on Stackoverflow
Solution 2 - JavaPakka PakkaView Answer on Stackoverflow
Solution 3 - JavaBasheer AL-MOMANIView Answer on Stackoverflow
Solution 4 - JavauserM1433372View Answer on Stackoverflow
Solution 5 - JavamatsevView Answer on Stackoverflow
Solution 6 - JavaMaksim TuraevView Answer on Stackoverflow
Solution 7 - JavaMonu RohillaView Answer on Stackoverflow