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

Cursor Trim

Mike Moore

|
3,701 installs
| (2) | Free
Trims whitespace around cursors.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

cursor-trim

Trims whitespace around the cursor(s).

Features

Trim whitespace to the left and/or right of all cursors/selections.

example

Extension Commands

Command Description
yo1dog.cursor-trim.lTrimCursor Trims whitespace to the left.
yo1dog.cursor-trim.rTrimCursor Trims whitespace to the right.
yo1dog.cursor-trim.trimCursor Trims whitespace to the left and right.

Implementation Details

Note: A "cursor" is actually a selection with a length of 0.

Deletes all consecutive spaces and tabs directly preceding (left trimming) and/or proceding (right trimming) each selection.

Known Issues

See Issues.

Release Notes

See CHANGELOG.md

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