Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/randy3k/Whitespace
Remove Trailing Whitespace for Sublime Text
https://github.com/randy3k/Whitespace
Last synced: 3 months ago
JSON representation
Remove Trailing Whitespace for Sublime Text
- Host: GitHub
- URL: https://github.com/randy3k/Whitespace
- Owner: randy3k
- License: mit
- Created: 2014-06-17T05:48:20.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-01-21T23:02:52.000Z (almost 7 years ago)
- Last Synced: 2024-05-19T23:35:52.733Z (6 months ago)
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 42
- Watchers: 3
- Forks: 5
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Whitespace
Sublime Text has options `trim_trailing_white_space_on_save` and `ensure_newline_at_eof_on_save` to handle whitespace.
In some situations, these options do not give satisfactory result. While similar packages exist, e.g., [TrailSpaces](https://github.com/SublimeText/TrailingSpaces), they do not allow easier syntax specific settings.
Whitespace helps in keeping your code clean by providing more features in removing trailing spaces.- remove trailing whitespace
- ensure single trailing newline
- ignore whitespace only lines
- ignore whitespace on current line### Installation
This plugin can be installed via package control.### Options
- The easiest way to apply "remove trailing whitespace" is by Command Palette `C+Shift+P`.- To activate "remove trailing whitespace on save", click the menu items in `Edit -> Whitespace`.
- To enable Whitespace at startup, modify your preference setting file. If you want to enable Whitespace for a specific syntax,
edit `Preferences -> Settings - More -> Syntax Specific`:```
{
"remove_trailing_whitespace_on_save": true,
"ensure_single_trailing_newline": true,
"ignore_whitespace_only_lines": false,
"ignore_whitespace_on_current_line": true
}
```The options explain themselves. Their default values are `false`. You can also make use of [Syntax Manager](https://github.com/randy3k/SyntaxMgr) to enable Whitespace for multiple syntaxes.