Skip to content

Add compact cursor position format setting for status bar#297593

Open
NaveedAhmeds wants to merge 2 commits intomicrosoft:mainfrom
NaveedAhmeds:feature/compact-statusbar-position
Open

Add compact cursor position format setting for status bar#297593
NaveedAhmeds wants to merge 2 commits intomicrosoft:mainfrom
NaveedAhmeds:feature/compact-statusbar-position

Conversation

@NaveedAhmeds
Copy link
Copy Markdown

Resolves #296912

Add a workbench setting to show the editor cursor position in a compact line:column format in the status bar instead of the default Ln X, Col Y.

Changes

  • Add workbench.statusBar.compactPositionFormat setting under Workbench settings.
  • Render the cursor position as line:column when the setting is enabled.
  • Keep Ln X, Col Y as the default format.

How to test

  • Build and run VS Code from this branch.
  • Open a text file and observe the default cursor position format: Ln X, Col Y.
  • Enable Workbench › Status Bar: Compact Position Format in Settings.
  • Verify the cursor position shows as line:column (for example 42:7), including for selections / ranges.
  • Disable the setting and verify the format returns to Ln X, Col Y.

Screenshots

  1. Setting in Settings UI search

    Screenshot 2026-02-24 at 11 15 51 PM
  2. Default status bar cursor format

    Screenshot 2026-02-24 at 11 16 15 PM
  3. Compact status bar cursor format

    Screenshot 2026-02-24 at 11 16 22 PM

CC @bpasero

@NaveedAhmeds
Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compact line/column display option in status bar

2 participants