Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Scroll With Stationary CursorNew to Visual Studio Code? Get it now.
Scroll With Stationary Cursor

Scroll With Stationary Cursor

stlr

|
1,729 installs
| (2) | Free
Move the cursor up and down, while scrolling one line in the same direction so that the cursor maintains its position within the editor
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Scroll with Stationary Cursor

Features

Adds ability to scroll in sync with the cursor moment. For example, pressing the "up" key moves the cursor up one line as normal; the new behavior also scrolls up one line. The opposite is also true: move the cursor down a line; scroll down one line. As a result, the cursor remains the same distance from the top and bottom of the editor.

Commands

scrollWithCursorUp

scrollWithCursorDown

Default Keyboard Binding

Mac

Command Keybinding
Move cursor down one line ctrl + alt + cmd + down
Move cursor up one line ctrl + alt + cmd + up
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft