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
Here is how to enable this feature :
- First of all make sure that you have the latest updated installed (1.82.3)
- Then go to File>Preferences>settings and search for "Sticky Scroll" then enable it and Walla!
Cover photo by Florian Olivo on Unsplash
Top comments (1)
it's very useful thank you for sharing