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

Configurable behavior of page-up (cursorPageUp) and page-down (cursorPageDown) #17686

Closed
kobalicek opened this issue Dec 21, 2016 · 2 comments
Closed
Assignees
Labels
*question Issue represents a question, should be posted to StackOverflow (VS Code)
Milestone

Comments

@kobalicek
Copy link

kobalicek commented Dec 21, 2016

I haven't found a way how to change the behavior of page-up and page-down to the following:

  • when I hit page-up / page-down, the cursor won't visually move the line, but the content scrolls up or down.
  • this basically means, that hitting page-up and then page-down brings me to the same "view" as it was before (unless I hit start / end of document)

Currently when I press page-up / page-down the page doesn't scroll, but the cursor moves up or down first (then after hitting page-up / page-down again it scrolls finally). I'm not used to this behavior and would like to change that.

Not sure I expressed this correctly, I just would like to have the option to control this.

@alexdima
Copy link
Member

There are two commands that do what you wish, but they need to be bound to a key combination:
In your keybindings.json

{ "key": "ctrl+pagedown",          "command": "scrollPageDown",
                                     "when": "editorTextFocus" },
{ "key": "ctrl+pageup",            "command": "scrollPageUp",
                                     "when": "editorTextFocus" }

@alexdima alexdima added the *question Issue represents a question, should be posted to StackOverflow (VS Code) label Apr 24, 2017
@kobalicek
Copy link
Author

It's not the same, what you suggest is to just scroll without moving the cursor, I wanted the behavior that is in Visual Studio and all other IDEs, when I press PageUp/Down it scrolls and moves the cursor as well.

@alexdima alexdima added this to the May 2017 milestone May 31, 2017
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*question Issue represents a question, should be posted to StackOverflow (VS Code)
Projects
None yet
Development

No branches or pull requests

2 participants