Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Cursor PositionNew to Visual Studio Code? Get it now.
Cursor Position

Cursor Position

asquared31415

|
510 installs
| (1) | Free
Displays the offset of the cursor from the beginning of the document.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Cursor Position

This extension shows the absolute position of the cursor in the current document.

Features

The cursor position is shown in a status bar item in the bottom right, immediately to the left of the Ln X, Col Y status bar item.

status bar item

The status bar item displays the zero-indexed character offset from the start of the document. All characters count as one offset, the encoding of the character has no effect.

If a selection is active, the status bar item will show the offset of the start of the selection followed by the offset of the current position.

selection

A reversed range means that the selection begins after the cursor (the selection is backwards).

reversed selection

If more than one cursor or selection is active, the status bar item will not show.

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