If you haven’t tried IntelliJ IDEA 14 EAP yet, we hope this sneak peek will convince you to, because it keeps getting better and better!
One of current EAP highlights is smarter Backspace key behavior: it doesn’t just remove indents and white spaces, it does so according to your code style settings. This new setting which is called Smart Backspace Indent makes editing code way more convenient because you can just slam it repeatedly without having to worry about breaking code style and remove unwanted spacing much quicker:
The setting is enabled by default but you can toggle it from Settings → Editor → Smart Keys:
As good as it comes, IntelliJ IDEA 14 EAP is work in progress nevertheless, so if anything doesn’t work as it should, report it please to the discussion forum or issue tracker.
Develop with Pleasure!

Little idea, great impact! Thank you, this will save years of developers’ time.
It’s the little things like this which makes IDEA such a lovely IDE.
I hope that it will end up in PhpStorm!
Sure, should be already available in latest PhpStorm 8 EAP
Cool feature! We need more like these
This is amazing! Thanks guys, this feature (or similar “smart backspace”) have been asked for a long time, I’m so glad it’s finally added!
Love it! It’s really great to see invested money turning to time saving (= money earning) features.
I’ve just noticed… Is this going to appear in PhpStorm?
Nice work guys, must have been fun to make it work with the style rule system. This will save me a lot of alt + backspace combos!
This may be the most impressive new IDE feature since the introduction of IntelliSense. It’s funny how something you’ve never given a second thought can make such a difference. Great work.
That’s great!
Very cool I hope the R# team consider it too!
Cool! Will this feature be in other JetBrains IDEs, like PHPStorm?
Greate. Make also
Smart Delete Indent
=)Already thinking of it
From the comments it seems like a popular feature. I have never given the backspace key behavior a second thought, I usually just do a code reformat if things don’t line up after an edit (cmd+atl+L).
Although I use the IdeaVIM plugin so I rarely use the backspace key anyway.
I don’t know man, I’ve been using EAP 14 for close to a month now and this backspace thing drives me nuts.
I’ll log me some issues, but I find for Javascript, it poorly judges where to jump back to when there are comment blocks inside code, and when function parameters are on one line each (eg long lists of Angular JS injections) it gets it pretty wrong.
Please raise issue(s) in YouTrack with specific examples of where it gets annoying.
Maybe would be good to have it turn on/off based on language being used.
It’s good feature, but missing I’m missing one thing: option to not delete last “new line”, because when formatting text and there is only white-spaces in line, smart back-space deletes entire line instead of only deleting these white-spaces and leaving empty line.
Not sure I understand your use case. Trailing whitespace introduced while editing a document can be removed automatically on document saving.
Raising an issue in YouTrack with a specific code sample might be helpful.
Super cool idea !
Goodddd!!!
Up a line when hitting backspace super annoying. Turn this off by default.
Is it possible to have backspace unindent but not remove the entire line?
I think this is wrong.
Bottom line is it should be turned off by default; and it is better to be smart on [CTRL] + [BACKSPACE], not [BACKSPACE].
The backspace key is so basic, that I believe most user would just expect it behave primitive rather than “smart”.
I am with you on this.
It should be CTRL+Backspace or some other special combination because it
is non-standard behavior. This behavior has been slowing me down.
Probably depends on your workflow and code style.
You know how notepad++ has column select with ALT+CLICK.
It’s awesome. But it would be horrible if it was the default behavior.
Thank you for making this feature something I can disable.
Now please do the same for the scroll thumbs ?
This is so horrible!!! I had to search online to figure out how to turn it off.
It doesn’t let me split long parameters to functions onto separate lines. When I try to manually indent each new line, it just stupidly moves the line to the above line!!!!
This sort of thing should be switched off by default, and explained in some sort of tutorial when it first happens. It’s far too confusing, and over complex to figure out how to disable.
Yeah. This sucks.
1. How hard is it to use CTRL+Backspace? Which does basically same thing.
2. By making backspace do behavior of CTRL+Backspace, you effectively take
away the variety of options available at your fingertips.
Super cool Idea.!!