Hungry Backspace in Eclipse?

Some editors have plugins that implement a feature called “hungry backspace” or “hungry removal”.

If this mode is active in a text editor, then a single press of the return key will automatically delete all whitespace characters back from the current cursor position to the first character without spaces.

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

Does anyone know if it is available in Eclipse?

+7
eclipse editor plugins ide
source share
5 answers

Alt-Del is probably as close as you are without writing a plugin. Others asked for this function (coming from intelliJ), but so far it does not exist or it has not been published.

-Adam

+4
source share

CTRL-backspace is also pretty close: delete the previous word :

function(); (4 spaces) 

+ CTRL-BACKSPACE gives:

 function 

In addition, the AnyEdit plugin can convert trailing spaces to tabs (but also to ", effectively removing them)

+2
source share

Ctrl + Shift + Left, Backspace always works for me. works in notepad, web browsers, everywhere. Stick to the standards :)

+1
source share

In SciTE and Eclipse (3.4), Ctrl + Shift + Del with a carriage after the last visible character will remove these spaces. I.e. it removes from the carriage to the end of the line.

Actually, in SciTE I do not need to do this, since I set it to automatically remove these trailing spaces when saving.

Note. In the Preferences> General> Keys section, there is a link “Uninstall Scrolling Binding” (without assigning a default key), which seems to apply to the file.

0
source share

From the eclipse of the Windows menu / Preferences, Find Keys and filter "Delete the previous word" and bind it to Ctrl + Backspace enter image description here

0
source share

All Articles