IntelliJ IDEA jump from interface to implementing class in Java

偶尔善良 提交于 2019-11-28 15:36:27
limc

Yes.... in mac, it is Apple + ALT + 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 PC, it is CTRL + ALT + B: JetBrains navigation documentation.

Pakka Pakka

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

If you did Alt + Mouse click on method method you want to navigate to You will be navigated to interface (Declaration)

but If you did Alt + Ctrl + Mouse click on method method you want to navigate to You will be navigated to class (Implementation)

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

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.

On MacOs: cmd + (option) + B

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!