Skip to content
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

Add option to keep cursor relative to screen when scrolling with scrollPageUp/scrollPageDown commands #22796

DaanDeMeyer opened this issue Mar 17, 2017 · 3 comments


Copy link

@DaanDeMeyer DaanDeMeyer commented Mar 17, 2017

It would be great to have an option to keep the cursor relative to the page when scrolling up and down with the scrollPageUp and scrollPageDown (alt+pageUp/alt+pageDown) commands.

For example, with the option enabled and my cursor at the 3rd line on the screen when I press alt+pageDown I would expect both my screen and my cursor to have scrolled down 1 page in the document. The position of my cursor relative to my screen should have stayed the same (eg it should still be at the 3rd line counted from the top of the screen).

Copy link

@alexdima alexdima commented Mar 27, 2017

Possible similar command:

        "key": "alt+pageup",
        "command": "editorScroll",
        "args": {
            "to": "up",
            "by": "page",
            "revealCursor": true
        "when": "editorTextFocus"

@alexdima alexdima added this to the Backlog milestone Mar 27, 2017
@alexdima alexdima removed their assignment Mar 27, 2017
Copy link

@darekrusin darekrusin commented May 30, 2017

@alexandrudima thanks! That was very helpful. After this command it's still not as good as in Sublime Text or Visual Studio, but at least I'm no longer pulling my hair out, so it's an improvement ;)

Copy link

@alexdima alexdima commented Nov 17, 2017

This feature request will not be considered in the next 6-12 months roadmap and as such will be closed to keep the number of issues we have to maintain actionable. Thanks for understanding and happy coding!

@alexdima alexdima closed this Nov 17, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants