Search code examples
intellij-idea

What Intellij IDEA setting locks the current functions at the top of the page as you scroll?


I've seen this feature where Intellij IDEA locks the current function name as you scroll through the file. As you can see in this screen capture by the line numbers, the nested functions lock to the top while current code is down below.

intellij functions locked to top

What is the name of this feature and where is it in the Intellij IDEA settings?


Solution

  • The name of the feature is Sticky Lines and it can be found in the settings at Preferences | Editor | General | Sticky Lines.