https://github.com/bitpatty/vscode-trailing-whitespace-trimmer
A formatter extension for Visual Studio Code that does nothing but trim trailing whitespace
https://github.com/bitpatty/vscode-trailing-whitespace-trimmer
Last synced: 20 days ago
JSON representation
A formatter extension for Visual Studio Code that does nothing but trim trailing whitespace
- Host: GitHub
- URL: https://github.com/bitpatty/vscode-trailing-whitespace-trimmer
- Owner: BitPatty
- License: mit
- Created: 2024-12-25T00:11:58.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-01T16:26:42.000Z (over 1 year ago)
- Last Synced: 2025-02-16T13:06:19.286Z (over 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 126 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# VSCode Trailing Whitespace Trimmer
A formatter extension for Visual Studio Code that does nothing but trim trailing whitespace as in a lot of projects additional formatting rules are not necessary or desired.
- [VSCode Marketplace](https://marketplace.visualstudio.com/items?itemName=bitpatty.trailing-whitespace-trimmer)
## Setup
Install the extension and add the following configuration to your VSCode's `settings.json` to apply it by default:
```jsonc
// Alternatively you can configure this via the UI:
// `Settings` -> `Editor: Default Formatter`
{
"editor.defaultFormatter": "bitpatty.trailing-whitespace-trimmer"
}
```
Or to add it to specific file formats:
```json
{
"[plaintext]": {
"editor.defaultFormatter": "bitpatty.trailing-whitespace-trimmer"
}
}
```
## Development
Update `src/web/extension.ts` with the necessary changes.
After building (`npm run build`), the project can be run locally using:
- The VSCode debugger: local / electron
- `npm run test-web`: web version
## License
Published under the MIT license, see `LICENSE` for details.