Cursor doesn't follow page when scrolling with Ctrl+Arrow keys in VS Code
- Dominant language
- TypeScript
- Stars
- 193k
- Forks
- 42.4k
- PR merge metrics
- PR metrics pending
Description
Type: Bug
Description:
When scrolling up/down with Ctrl+Up or Ctrl+Down in Visual Studio Code, the page scrolls but the cursor (caret) does not move—it stays at its original line position.
Actual Problem:
My eyes are on line 150, but the cursor is still on line 100. When I type, characters are inserted into line 100 (the hidden old position), not where I'm looking. This leads to unintentionally editing the wrong section of the file and corrupting code without immediate awareness.
Expected Behavior (like Visual Studio):
Both the page should scroll AND the cursor should move with the viewport to the corresponding new line when using Ctrl+Up/Down.
Request:
Please update VS Code's default shortcut behavior to match Visual Studio's, so the cursor follows the page during Ctrl+Arrow scrolling. Users shouldn't have to manually override keybindings for such basic functionality.
VS Code version: Code 1.128.0 (fc3def6774c76082adf699d366f31a557ce5573f, 2026-07-07T15:14:24-07:00)
OS version: Windows_NT x64 10.0.22631
Modes:
System Info
|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i5-9400F CPU @ 2.90GHz (6 x 2904)|
|Memory (System)|15.95GB (8.10GB free)|
Contributor guide
Assessment
This issue has not been assessed yet.