-
Notifications
You must be signed in to change notification settings - Fork 30.6k
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
Feature Request: Scroll Off #12048
Comments
Does VS Code have a "scroll window leaving cursor in view" command? The scroll commands I see in the default keymapping all scroll the cursor out of view. |
The answer to my question is yes - |
Not exactly. The feature is to scroll sooner, to always show context lines around the cursor. Currently, when moving down, scrolling ensures 1 context line left below the current line, and when moving up, none at all (scrolling does not begin until the cursor hits the top of the panel). It is very comfortable to always keep 4 or 5 visible lines above/below the current line, after all moves that move it (next search hit, go to matching parenthesis, etc.). This feature is called |
There is an extension vscode-scrolloff that provides similar functionality. |
I've removed Vim label since I see Sublime also have it. |
So is this being considered at all? Really missing this and the extension for that misbehaves with the vim plugin. |
That extension misbehaves badly when your have lines longer than your working window. |
The extension also doesn't work with the Vim extension's |
Come on, we need this common feature |
You should be able to set |
Considering that this feature in VS Code is slightly different from Vim's scrollOff (for example, you can scroll the viewport without moving the cursor in VS Code, which is not affected by this feature), it's being named as |
How does this interact with |
@waldyrious it's a different feature request #56174 |
Thanks for the pointer, @rebornix. I've subscribed to that issue. |
@rebornix Thanks for implementing this! |
In Vim, you can set a scrolloff so it keeps at least N lines below the cursor:
Currently Code has a scrolloff of 1. Would be great if this is made an option.
The text was updated successfully, but these errors were encountered: