Skip to content
| Marketplace
Sign in
Visual Studio>Tools>Relative Number
Relative Number

Relative Number

Brian Schmitt

|
27,458 installs
| (17) | Free
Displays the line number relative to the line with the cursor on it. It allows you to make quick vertical movements.
Download

Adds VIM's 'RelativeNumber' to Visual Studio for use with VSVim.

This extension is a drop in replacement for the built in line numbers column, adding Vim's Relative Number feature.

  • Replaces the built-in line number column
  • Supports all code/text views (including Peak Definition, Diffs, etc...)
  • Displays and left aligns the current line number (customizable color)
  • Uses the existing Visual Studio line number color scheme

Source Code and Open Issues can be found here: https://github.com/brianschmitt/relativenumber

Update 1.6.0

  • Support for VS 2019

Update 1.5.0:

  • Support for VS 2017 (Thanks Taylor)
  • Performance Fixes (Thanks idealist1508)

Update 1.4.0:

  • Optional new feature allowing you to customize the current line number color (Thanks Mark)
    To use open Tools->Options->Environment->Font and Colors and set the "Relative Number - Current Line" property.

Update 1.3.2:

  • Fix for views that do not support outlining (e.x. DIFF's) (Thanks Taylor)

Update 1.3.1:

  • Fixes an index error when a document only had the last line visible

Update 1.3:

  • Added support for VS2012 and VS2014
  • Display absolute line numbers for unfocused editor windows (Thanks Alex!)

Update 1.2:

  • Fixes zoom
  • Performance optimizations
  • Correctly handles mouse scrolling with folded code

Update 1.1:

  • Now replaces the built-in line numbers
  • Respects if you have line-numbers turned on/off (:set number, :set nonumber)
  • Correctly displays when word-wrap is enabled

Properly scales the font when using zoom.

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