Alex Rivera | Logout

Hungry Backspace in Eclipse?

Asked 2008-11-18T19:40:32.543
10

In some editors there exist plugins implementing a feature called "hungry backspace" or "hungry delete".

If this mode is active in a text editor then one hit to the backspace key will automatically delete all whitespace chars backwards from the current cursor position up to the first non-whitespace character.

For example, this feature exists for Emacs and IntelliJ IDEA.

Does anyone know if it is also available in Eclipse?

Edit
Report

1 Answer

0

In SciTE, and Eclipse (3.4), Ctrl+Shift+Del with the caret after the last visible character will delete these spaces. Ie. it deletes from caret to end of line.

Actually, in SciTE I don't need to do that, since I have set it up to automatically remove these trailing spaces when saving.

Note: In Preferences > General > Keys, there is a Remove Trailing Whitespace binding (without key assignment by default) which seems to apply to File.

answered 2008-11-18T20:51:11.370

Your Answer