问题
I'm using Intellij 2016.1 and I was wondering if there's a shortcut to see the method body in a popup window , instead of jumping to source code like Ctrl + Left Mouse Button does .
回答1:
The feature is called "Quick Definition Lookup" (Main menu > View > Tool Windows in the keymap settings). The default combination is Ctrl+Shift+I (or ⌘+Q for Mac).
It appears like
Any editing actions in the popup window lead to jumping into the file where the code is defined.
回答2:
Not to my knowledge,
Why would you just want to see the code in a popup? The signature yes, if you hover over the method it will show you the parameter types but if you are looking at body code then Ctrl-Click to jump to the code. Then you can CTRL-ALT Left Arrow to return to the original location
来源:https://stackoverflow.com/questions/37097919/showing-in-popup-window-method-implementation-in-intellij