Hungry Delete?

Can we get a hungry delete, or is there someway to do this that I'm not
aware of?

A "hungry delete" swallows up all whitespace when pressed, rather than just
one space, tab, or line-feed at a time.

For instance, when you have this (where "|" is the cursor):

public foo()
{
// some code
|
}

Pressing delete will get you to this:

public foo()
{
// some code


}

But pressing a "hungry delete" will get you to this, which is much more
logical, as it's the exact inverse of pressing enter (i.e. pressing enter
auto-indents and opens a new line... pressing hungry delete deletes the
indent and closes the line):

public foo()
{
// some code

}



Please sign in to leave a comment.