An open API service indexing awesome lists of open source software.

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

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.