Is there some shortcut that would allow me after creating method in an interface, select and jump to implementing class of that interface?
相关问题
- Delete Messages from a Topic in Apache Kafka
- Jackson Deserialization not calling deserialize on
- How to maintain order of key-value in DataFrame sa
- StackExchange API - Deserialize Date in JSON Respo
- Difference between Types.INTEGER and Types.NULL in
In addition to Ctrl + Alt + B mentioned above, you can also use the mouse: Ctrl + Alt + LeftMouseButton to jump directly to implementations.
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.
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 theHelp
menu.Moreover, there is the
Default Keymap Reference
also available from theHelp
menu (that among other shortcuts contains the shortcut to theFind Action...
described above).Lastly, you can configure your own keyboard shortcuts (and see the current settings) in the
Preferences
->Keymap
setting.If you did Alt +
Mouse click
on method method you want to navigate to You will be navigated tointerface (Declaration)
but If you did Alt + Ctrl +
Mouse click
on method method you want to navigate to You will be navigated toclass (Implementation)