Reputation: 185
I know for sure that by clicking hot key alt + q, the context of current method or class could show up just like:
But is there any way to make the IDE keep showing the context information at the top of the edit area?
Upvotes: 3
Views: 1206
Reputation: 47895
You can't keep the method definition for the 'currently active' method pinned to the top of the editor but if your goal is to display the method definition for the 'currently active' method while you are editing that method then you could use the Structure
tool window and select Autoscroll from source
. This will show you the definition of the method you are currently editing / your cursor is currently sitting in.
Here's a screenshot:
Autoscroll from source
is the last icon on the right at the top of the Structure
tool window.
You can activate the Structure
tool window via keystokes (e.g. ALT 7
), to identify the correct keystroke just have a look at the keystroke associated with the menu item: View > Tool Windows > Structure
.
More details in the docs
Upvotes: 1