DEV Community

Cover image for VS Code Tip of the Week: Sticky Scroll
Nick Taylor Subscriber for VS Code Tips

Posted on • Originally published at community.vscodetips.com

76 14 1

VS Code Tip of the Week: Sticky Scroll

This week's VS Code Tip of the Week is the new sticky scroll functionality.

The nice thing about this feature is as you scroll, you have the context to where you are in the code because the sections stick at the top, e.g. a class definition, method definition, etc.

This is a feature you need to enable. Open your VS Code settings and search for sticky. Ensure Editor › Experimental › Sticky Scroll is enabled.

VS Code settings filtered on the word sticky

Check out this YouTube short care of Burke Holland on the VS Code YouTube channel.

Top comments (16)

Collapse
 
withextracheese profile image
pizzadonatello

Thought it was an annoying bug. But now that this article explained what is was. It's a welcome feature.

Collapse
 
renanfranca profile image
Renan Franca

Thank you! I didn't know that i want it ☺️

Collapse
 
nickytonline profile image
Nick Taylor

Captain America saluting

Collapse
 
monawwar profile image
Monawwar Abdullah

Thanks for sharing. Can you tell me the font-family used in the first image?

Collapse
 
nickytonline profile image
Nick Taylor

I used Dank Mono. You can see my whole setup at iamdeveloper.com/uses

Collapse
 
wjplatformer profile image
Wj

Wowww

Collapse
 
bobbyiliev profile image
Bobby Iliev

Very cool!

Collapse
 
joelbonetr profile image
JoelBonetR 🥇

It works in nested functions as well 😍

Collapse
 
nickytonline profile image
Nick Taylor

It's True - Dwight Shrute

Collapse
 
j3ffjessie profile image
J3ffJessie

Oh this is going to be an amazing setting for me with my work codebase. Awesome tip.

Collapse
 
ngocsotn profile image
The Ngoc Nguyen

Thank you for sharing this! Your posts are awesome.

Collapse
 
nickytonline profile image
Nick Taylor

Thanks for the kind words!

Kylo Ren on Undercover Boss giving a thumbs up

Collapse
 
trinhngoctam1990 profile image
Marcus

Nice, thanks Sir

Collapse
 
nickytonline profile image
Nick Taylor

Pam from The Office saying Nice!

Eliminate Context Switching and Maximize Productivity

Pieces.app

Pieces Copilot is your personalized workflow assistant, working alongside your favorite apps. Ask questions about entire repositories, generate contextualized code, save and reuse useful snippets, and streamline your development process.

Learn more

👋 Kindness is contagious

Explore a sea of insights with this enlightening post, highly esteemed within the nurturing DEV Community. Coders of all stripes are invited to participate and contribute to our shared knowledge.

Expressing gratitude with a simple "thank you" can make a big impact. Leave your thanks in the comments!

On DEV, exchanging ideas smooths our way and strengthens our community bonds. Found this useful? A quick note of thanks to the author can mean a lot.

Okay