Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>AutoTrimNew to Visual Studio Code? Get it now.
AutoTrim

AutoTrim

Nathan Ridley

|
41,202 installs
| (9) | Free
Automatically trims trailing whitespace when moving the cursor from one line to another
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

AutoTrim: VS Code Extension

Trailing whitespace often exists after editing lines of code, deleting trailing words and so forth. This extension tracks the line numbers where a cursor is active, and removes trailing tabs and spaces from those lines when they no longer have an active cursor. As such, edits in the file are kept to a minimum, and not applied until a line is no longer being edited.

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