Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ssigwart/vscode-trailing-whitespace-fixer
VSCode extension to clean up trailing whitespace.
https://github.com/ssigwart/vscode-trailing-whitespace-fixer
Last synced: about 2 months ago
JSON representation
VSCode extension to clean up trailing whitespace.
- Host: GitHub
- URL: https://github.com/ssigwart/vscode-trailing-whitespace-fixer
- Owner: ssigwart
- License: mit
- Created: 2021-09-04T18:07:14.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-08-05T16:44:31.000Z (over 1 year ago)
- Last Synced: 2024-08-10T10:03:22.247Z (5 months ago)
- Language: TypeScript
- Size: 78.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
## Trailing Whitespace Fixer
This extension helps to identify and remove trailing whitespace.
It includes the following features:### Trim on Enter
- If you hit Enter on a line that has trailing whitespace, it will be automatically removed.
- If you hit Enter before whitespace on a line, the whitespace will be removed.**Example: The `|` character represents the cursor position.**
```php
$arr = [
1, 2,| 3, 4
];
```
**Hitting Enter without Extension**
```php
$arr = [
1, 2,
| 3, 4
];
```
**Hitting Enter with Extension**
```php
$arr = [
1, 2,
|3, 4
];
```### Show Trailing Whitespace
- Any trailing whitespace on lines other than the current line will be highlighted in red.## Configuration
- If you want to allow lines that are only whitespace, you can enable the `trailing-whitespace-fixer.allowWhitespaceOnlyLines` setting. This is useful if you want to retain the current indentation level.