Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hungry Backspace in Eclipse?

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?

like image 579
mkoeller Avatar asked Nov 18 '08 19:11

mkoeller


2 Answers

Alt-Del is probably as close as you're going to get without writing a plugin yourself. Others have asked for this feature (coming from intelliJ) but so far it doesn't exist, or it's not published.

-Adam

like image 94
Adam Davis Avatar answered Nov 20 '22 06:11

Adam Davis


CTRL-backspace is pretty close too: delete previous word:

function();    (4 spaces)

+ CTRL-BACKSPACE gives:

function

Other than that, AnyEdit plugin can convert trailing spaces into tabs (but also into "", effectively removing them)

like image 33
VonC Avatar answered Nov 20 '22 06:11

VonC