DEV Community

Cover image for VS Code Sticky Scroll!
Amr Samy
Amr Samy

Posted on

VS Code Sticky Scroll!

In the latest update of VS code of August, they officially announced this feature -after being experimental for a while- which I didn't notice until a couple of days ago and I am so excited to share it with you in case you didn't know about it.

So basically as you get deeper into a function or any nested block of code with opened brackets the VS code will keep that line stick to the top of the screen as long as you don't reach that block of code's end as shown below

VS code Sticky Scroll demo

Here is how to enable this feature :

  1. First of all make sure that you have the latest updated installed (1.82.3)
  2. Then go to File>Preferences>settings and search for "Sticky Scroll" then enable it and Walla!

enable sticky scroll steps

Cover photo by Florian Olivo on Unsplash

Top comments (1)

Collapse
 
bilalmuhammed99 profile image
bilalmuhammed99

it's very useful thank you for sharing