A screenshot of the VS Code 1.70 sticky scroll feature.
A screenshot of the VS Code 1.70 sticky scroll feature.

VS Code sticky scroll

VS Code's sticky scroll feature will stick the nested structure of your code to the top of your editor.

For example, in the screenshot above, we can see that the lines 29, 161, and 174, define the nesting inside which the code return self.button lies. So, we conclude that return self.button is a return statement inside the method def control(self) -> Button that is a method of the class Pressed(Message, bubble=True), which is a class that is nested inside class Button(Static, can_focus=True).

To toggle this feature on/off, all you need to do is open your command palette (Cmd/Ctrl + Shift + P) and type โ€œtoggle sticky scrollโ€.

That's it for now! Stay tuned and I'll see you around!

Improve your Python ๐Ÿ fluency and algorithm knowledge ๐ŸŽฏ

Get ready for 12 intense days of problem-solving. The โ€œAlgorithm Mastery Bootcampโ€ starts December 1st and it will feature 24 programming challenges, live analysis sessions, a supportive community of like-minded problem-solvers, and more! Join now and become the Python expert others can rely on.

References

Previous Post Next Post

Blog Comments powered by Disqus.