dell116
dell116

Reputation: 5915

Keyboard shortcut to preview method code in a popup

What is the keyboard shortcut to preview a method's code as a pop-up?

I'm looking to preview the code inside of a given method much like one would preview the javadoc by placing the caret on the method and pressing F1.

I used to know this shortcut, but my memory is failing me harder than the various search algorithms and mom isn't home right now. ;-)

Upvotes: 3

Views: 504

Answers (2)

Supun Wijerathne
Supun Wijerathne

Reputation: 12948

I think you need the shortcut keys to Quick Definition. So jos76's idea is correct. But we have to map it to your keymap.

As I found from Settings -> Keymap, these are the keyboard shortcuts for Mac OS 10.5+. You may change as your convenience.

enter image description here

And you can also try

  • Place cursor on the method.
  • From Main menu View -> Quick Definition(2nd row under view, You can also see shortcut key combinations appearing there). So there would be a pop up appearing with method implementation view as you suggested :))

So it looks like this.

enter image description here

Upvotes: 3

jos76
jos76

Reputation: 141

Is Ctrl+Shift+I what you're looking for? Found it here

Upvotes: 3

Related Questions