Skip to content
| Marketplace
Sign in
Visual Studio Code>Keymaps>Toggle Relative Line NumbersNew to Visual Studio Code? Get it now.
Toggle Relative Line Numbers

Toggle Relative Line Numbers

Habibium

|
711 installs
| (1) | Free
Toggle your line numbers between relative and absolute with keyboard shortcut
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Toggle Relative Line Numbers - VSCode Extension

A VSCode extension that allows you to toggle between absolute and relative line numbers in the editor.

Installation

This extension can be installed via the VS Code Marketplace.

Usage

Extension demo gif

Use the shortcut (ctrl+alt+l by default) to toggle. Or:

  1. Press Ctrl+Shift+P to open the command palette.
  2. Search for "Toggle Relative Line Numbers" and press enter.
  3. The line numbers in the editor will toggle between absolute and relative.

Contributing

Contributions are welcome! Please fork the repository and submit a pull request.

License

This extension is licensed under the MIT License.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft