Plugin for Sublime Text 2 to remove blank lines and whitespaces
Python
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
Default (Linux).sublime-keymap
Default (OSX).sublime-keymap
Default (Windows).sublime-keymap
README.md
ShrinkWhitespaces.py

README.md

Shrink Whitespaces

This plugin gives you shrink_whitespaces command for Sublime Text 2. With it you can:

  • Convert a set of blank lines in just one blank line, or
  • Remove the blank line that is between two paragraphs, or
  • Remove a set of whitespaces between two words, or
  • Remove the whitespace between two letters.

The action depends on the context where the command is used.

Default keyboard shortcut: Alt+W

Based on ErgoEmacs's shrink-whitespaces function, which is a combination of three Emacs functions: just-one-space, delete-blank-lines, and delete-horizontal-space.