-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Hello,
I love the sticky scroll feature and it is very helpful for quickly figuring out where in the code I am currently editing. However, one thing I really miss when working with large codebases with very complex functions, is the ability to quickly figure out which if statement or for/while loop I am currently in. When dealing with nested if statements or loops, I find myself scrolling up and down alll the time. I use rainbow highlighting to try and help with visual cues but it would be much faster to just look up at the sticky scroll to quickly see whether I am inside an if statement or a loop. I understand the better thing to do here would be to refactor the code to be more modular and less complex but that is currently out of scope and I think perhaps other users could also benefit from this feature request.
Desired functionality:
When scrolling through a complex function with stick scroll enabled:
- Append any for/while loop statements and if statements (including the else block) to the stick scroll. This would make it so that you get a lineage from function signature down to current location in the code which would should the clear reasoning behind the current indentation of the code.
- This could be a feature that is by default off so as not to clutter the sticky scroll and that could also be controlled by the existing max n lines in sticky scroll to prevent too much of the working area from being eaten up by sticky scroll
I tried scouring the issues libaray for this request but couldn't find anything similar so hopefully this is not a dupe :)
Thanks for all the hard work you guys do!