[ANN] HungryBackSpace 1.0

Available from the Plugin Manager

Changes:
Quick fix for the "'action with id "Options" isn't registered; action will be added to the "Other" group'"
exception when starting IDEA. The 'BackSpace Stop at Indent' was moved to the Tools-Menu.

Description:

When HungryBackSpace plugin is loaded, the BackSpace key is modified to hungrily delete whitespace.

When hitting the BackSpace key will consume all preceding whitespace, including newlines and tabs, until a non-whitespace character is encountered. If no whitespace preceded the caret, then HungryBackSpace acts like a normal backspace and deletes one character.

This feature helps free your mind to concentrate on coding instead of counting out the number of BackSpaces? required to go back to previous line. Try it and you may quickly become addicted!! IMO this should be the default behavior of Backspace. IDEA should add an option Editor->SmartKeys->Hungry Backspace.

For those familiar with EMACS, HungryBackSpace works the same as CCMode's auto-hungry-delete.

Enjoy -Alex


0
2 comments
Avatar
Permanently deleted user

Hello Alex,

Seems GREAT, I have problems with 1019 and 1024 so I haven't tried it,
how different is it than the Ctrl+BackSpace ?

--
Best Regards,
Mamado.


"Alex" <no_mail@jetbrains.com> wrote in message
news:31597283.1072229663776.JavaMail.itn@is.intellij.net...

Available from the Plugin Manager

>

Changes:
Quick fix for the "'action with id "Options" isn't registered; action will

be added to the "Other" group'"

exception when starting IDEA. The 'BackSpace Stop at Indent' was moved to

the Tools-Menu.
>

Description:

>

When HungryBackSpace plugin is loaded, the BackSpace key is modified to

hungrily delete whitespace.
>

When hitting the BackSpace key will consume all preceding whitespace,

including newlines and tabs, until a non-whitespace character is
encountered. If no whitespace preceded the caret, then HungryBackSpace acts
like a normal backspace and deletes one character.
>

This feature helps free your mind to concentrate on coding instead of

counting out the number of BackSpaces? required to go back to previous line.
Try it and you may quickly become addicted!! IMO this should be the default
behavior of Backspace. IDEA should add an option Editor->SmartKeys->Hungry
Backspace.
>

For those familiar with EMACS, HungryBackSpace works the same as CCMode's

auto-hungry-delete.
>

Enjoy -Alex

>
>
>


0
Avatar
Permanently deleted user

Seems GREAT, I have problems with 1019 and 1024
024 so I haven't tried it,
how different is it than the Ctrl+BackSpace ?


It is similar to CTRL+BackSpace with following differences:
1) Obvious difference, you now only need to hit BackSpace now instead of CTRL+BackSpace, so it is more convinient.
2) HungryBackSpace doesn't eat up multiple non-whitespace characters like CTRL+BackSpace. It only hungrily deletes whitespace. This makes it more appropriate for default BackSpace behavior.
3) In the following example, you need to hit CTRL+BackSpace 4 times to get back to the line whereas
with HungryBackSpace, it is only 2 times. ( _ = SPAce, ^ = caret)

When you hit HungryBackSpace 1st time, you get

When you press HungryBackSpace 2nd time, you get

The CTRL+BackSpace will take 4 presses to get back to same spot, plus on the last press it will eat up the extra whitespace plus the semicolon, which probably isn't what you want.

After pressing CTRL+BackSpace 3 times, you get

On the 4th press of CTRL+BackSPace, you get

0

Please sign in to leave a comment.