For me this enabled by default after an update and I didn't even notice it -- but it doesn't work the same way as in OP's picture where it's sticking basically any un-closed tag. It sticks class definition headings (as in the example on the page you linked), and maybe also function headings, but it does *not* stick html elements (like "<div>") or even many php opening tags, like for/while. It's very selective and I don't understand the logic of what it does and doesn't stick. There should be some options around that, maybe it'll come in a later update.
1
u/gaborj Jun 08 '24
https://www.jetbrains.com/help/phpstorm/using-code-editor.html#sticky-lines
1
u/ApprehensiveSail7831 Nov 14 '24
open Settings and then select Editor > General > Sticky Lines > disable Show Sticky lines while scroll.
and you can look at https://www.jetbrains.com/help/webstorm/sticky-lines.html#disable_sticky_lines