Details:
- IDE: IntelliJ IDEA 14
- O.S.:: Windows 7
If I want to navigate to the declaration of a method I can choose one of the following approaches:
- press Ctrl + left click
- right click > Go To > Declaration
- press Ctrl + B
If I want to navigate to the implementation of a method I can choose one of the following approaches:
- press Ctrl + Alt + left click
- right click > Go To > Implementation(s)
- press Ctrl + Alt + B
In Eclipse, if I press Ctrl and the mouse is over a method, a popup appears and I can choose what to do (go to Implementation/Declaration). If I press "left click" ( Ctrl is still pressed ) the first option will be chosen.
How can I achieve the same / a similar behavior in IntelliJ IDEA ?
There is not a built-in option for this. You would need to configure a custom quick list to do such.
Note that in the quick list that opens, you will have numbers next to each action for quick selection.
Edit: Adding a screenshot of final quick list for additional clarity