qingjinlyc
qingjinlyc

Reputation: 185

In Intellij Idea, how to keep showing context information?

I know for sure that by clicking hot key alt + q, the context of current method or class could show up just like: enter image description here

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

Answers (1)

glytching
glytching

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:

enter image description here

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

Related Questions