Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Relativity_New to Visual Studio Code? Get it now.
Relativity_

Relativity_

wheredoesyourmindgo

|
31 installs
| (0) | Free
Jump or select a number of lines up or down. Pairs well with relative line numbers.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Relativity

CI

Jump or select a number of lines up or down from the cursor. Press a shortcut, type how many lines, and press Enter.

It works best with relative line numbers turned on, so the number you need is right there in the gutter:

"editor.lineNumbers": "relative"

Commands and keybindings

All commands are also in the Command Palette under Relativity.

Command Keybinding
Relativity: Jump Up Ctrl+9
Relativity: Jump Down Ctrl+8
Relativity: Select Up Ctrl+Shift+9
Relativity: Select Down Ctrl+Shift+8

Ctrl is used on macOS too.

Jumps keep the cursor's column, or stop at the end of the line if the target line is shorter. They stop at the first and last line of the file.

Select Up and Select Down extend the current selection, so you can press them repeatedly to grow or shrink it.

To use different keys, open Preferences: Open Keyboard Shortcuts and search for relativity.

Jump a fixed number of lines

Every command takes an optional argument: the number of lines. A keybinding with args skips the prompt. For example, to jump down 10 lines with Ctrl+Alt+8, add this to your keybindings.json:

{
  "key": "ctrl+alt+8",
  "command": "relativity.jumpDown",
  "args": 10,
  "when": "editorTextFocus"
}

Settings

Setting Default Description
relativity.selectEntireLine false Select whole lines, from the line the selection started on to the target line, instead of selecting from the cursor's column.

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft