-
Notifications
You must be signed in to change notification settings - Fork 27.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Opt out of scroll position restoration for explicitly-closed files #24394
Comments
Same issue here, haven't found a single case where the current behavior is helpful. |
@mdalpi confirmed - it doesn't seem to be happening for me anymore either. |
@axefrog It seems that it was a bug after all, it's back on 1.12.2 😢 |
This behavior should be opt-in and disabled by default. Now nearly every file i open starts at the bottom instead of the top and in 90% of the times the first thing i do is scroll to the top. |
I'm also experiencing this behavior: Steps to reproduce:
Result, the reopened file is scrolled to the previous scroll position. This behavior is unlike any text editor that I've used in the past. I very rarely want to open a file at the same scroll position, especially after I've been working in other files for a while. It can be disorienting, and frustrating to open a file at a position that doesn't match your current mental map of the file. Ideally there would be a setting that you could toggle on/off to restore editor state when opening a file. Something like I'd be happy to take to try implementing this if someone could point me in the right direction. It looks like view state might be restored in the |
There is now a new setting |
Verification: |
Steps to Reproduce:
When I close a file, I'm done with it for now. Next time I open it, my intent is usually different to what it was before I closed it. Probably 90% of the time, I find that the restoration of old scroll positions for files I closed on purpose is more of an annoyance than a help. Note that I do want to restore the scroll position in hot exit scenarios. I simply want my former scroll position to be disregarded if I explicitly close the file.
Is there a setting for this? If not, would it be a lot of effort to add a setting for this? I have a lot of files in my project, and constantly being forced to manually scroll to the top before I can begin editing is annoying.
The text was updated successfully, but these errors were encountered: