# Trailing Spaces

> Highlight trailing whitespace in VS Code and delete it in one go

Source: https://talira.ai/catalog/trailing-spaces-zy114sfn
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Plugin
- Categories: [developer tools / code quality](https://talira.ai/categories/developer-tools/code-quality), [developer tools / editors](https://talira.ai/categories/developer-tools/editors)
- Licence: MIT[^2]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source.
- Free tier: yes[^1]
- Backed by: [Shardul Mahadik](https://talira.ai/orgs/shardulm94.md)
- Extends: [VS Code](https://talira.ai/ecosystems/vscode.md#ext-6d6fngtq)

A [Visual Studio Code](https://talira.ai/catalog/visual-studio-code-k779xgqd.md) extension by Shardul Mahadik that highlights trailing spaces and deletes them, in the whole file or only on modified lines, on demand or on save. Options include live or on-demand matching, empty lines, the current line, ignoring some languages or schemes, and the highlight's colors. A port of the Sublime Text plugin of the same name. MIT licensed.

## Links

- GitHub: https://github.com/shardulm94/vscode-trailingspaces

## Problems it solves

- stray whitespace at the end of lines keeps showing up in my diffs
- see and remove trailing spaces before I commit
- strip trailing whitespace only on the lines I changed

## Features

- highlight trailing spaces
- delete them in the file or on modified lines only
- trim on save
- live or on-demand matching
- ignore chosen languages and schemes
- custom highlight colors

## Trust

Overall: 0.26 out of 1.
Signals: maintenance 0.27, adoption 0.41, momentum 0.08, community 0.36, backing 0.30, extensibility 0.00.

- latest release v0.4.4 5 months ago
- 106 GitHub stars
- 7 contributors
- backed by Shardul Mahadik

Warnings:

- last commit 5 months ago

## Sources

[^1]: https://github.com/shardulm94/vscode-trailingspaces#readme (checked 24 Nov 2026)
[^2]: https://github.com/shardulm94/vscode-trailingspaces/blob/master/LICENSE (checked 24 Nov 2026)
