In Eclipse, how can spaces behave as tabs?

I have replaced all my tabs by spaces in my PHP code source (and I configured Eclipse to use 4 spaces as tabs). When I hit tab, I get 4 spaces, that's OK.

But when I hit backspace to remove an indentation level (a tab), it removes only one space. So I have to hit 4 times space to remove an indentation level.

That is one of the most absurd thing I've seen in Eclipse, so I guess there is an option somewhere to enable us to remove 4 spaces as if it where a tab ? or a plugin ?


Don't think there is a way to set it to delete the entire space indentation with backspace, but shift+tab should do what you want.

After all this time, no solution.

I'm considering this as impossible then : there is no solution.

So... I also need that feature. Before a began to use Eclipse, I was a Vim user. Actually a still use it for some edit task. There is a vimplugin for eclipse, so you can use it as your Eclipse editor. But its a matter of taste.

You can configure vim to do exactly that: Tab insert 4 spaces. Backspaces deletes indentations.

Here the config for your settings:

set tabstop=8       " This is the default in any editor, Tabs are 8spaces Wide"
set expandtab       " Tabs are converted to spaces"
set softtabstop=4   " Tabs are 4 spaces"
set shiftwidth=4    " Indent is 4 spaces"
" Here the magic"
set backspace=indent,eol,start  " Deletes over indent, line breaks, edit starts"


Need Your Help

Where is the Keytool application?

java eclipse android-mapview keytool

I need to use mapview control in android and I can't seem to understand how to run keytool.

How to stop truncating of data when outputting XML from ReportServer using data returned from a stored procedure with Powershell (large XML file)

sql-server xml file powershell cmdlets

I have been twiddling with a fairly simple idea to export ReportServer reports from the underlying database and then find its dependent stored procedures and export them as well.