WebStorm
 
Get WebStorm

Sticky lines

Last modified: 23 September 2024

The sticky lines feature pins key structural elements, such as class or function declarations, to the top of the editor as you scroll, keeping scopes visible for quick navigation in large files and codebases.

You can also click any of the sticky lines to scroll the editor to the corresponding declaration.

https://resources.jetbrains.com/help/img/idea/2024.3/ws_sticky_lines.png
Gif

By default, the maximum number of sticky lines is set to 5.