Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>📜🖥 Scroll ViewportNew to Visual Studio Code? Get it now.
📜🖥 Scroll Viewport

📜🖥 Scroll Viewport

Brian Malehorn

|
1,098 installs
| (1) | Free
Move the screen up and down, like with your mouse
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

📜🖥 Scroll Viewport

version number install count

When you scroll with the mouse, it moves the viewport up and down without moving the cursor.

Scroll Viewport adds keybindings for that behavior:

keybinding command
Ctrl+Down / Cmd+Down scroll down
Ctrl+Up / Cmd+Up scroll up

Extension Settings

name default effect
scrollViewport.lines 10 How many lines to scroll up / down

editorScroll

VSCode already has a similar built-in command called editorScroll:

[
  {
    "key": "ctrl+down",
    "command": "editorScroll",
    "when": "textInputFocus",
    "args": {
      "to": "down",
      "by": "line",
      "revealCursor": true,
      "value": 10
    }
  },

  {
    "key": "ctrl+up",
    "command": "editorScroll",
    "when": "textInputFocus",
    "args": {
      "to": "up",
      "by": "line",
      "revealCursor": true,
      "value": 10
    }
  }
]

ScrollViewport exists to address a few editorScroll problems:

  1. editorScroll gets stuck if you use code folding
  2. editorScroll won't preserve & expand your selection

Similar Projects

  • keyboard-scroll
  • scrollkey
  • scrolloff
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft