Smart Backspace in PhpStorm 8

PhpStorm 8 brings smarter Backspace key behavior: it doesn’t just remove indents and white spaces, but does so according to your code style settings.

This new setting called Smart Backspace Indent makes editing code much more convenient. Feel free to slam it repeatedly and don’t worry about breaking code style. Unwanted spacing is removed much quicker:


The setting is enabled by default, but you can toggle it from Settings/Preferences | Editor | Smart Keys:


If you experience any inconvenience, your feedback is always welcome through the issue tracker, by posting in the comments below, or in our forums!

Develop with pleasure!
-JetBrains PhpStorm Team

Get PhpStorm 8

This entry was posted in Cool Feature and tagged , . Bookmark the permalink.
  • Wesam Alalem

    that was cool feature, first noticed when I was trying to remove an empty line between two lines of code. Before, I would press backspace [delete MAC] many times to get the line in the right place. Now it is one press.

    thanks a lot for the great job.

  • L Smith

    This is the coolest feature ever!

  • Justinas

    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.

    • Liubov Melnikova

      You can disable this feature and provide a shortcut for “Hungry backspace”: File | Settings (Preferences for Mac) | Keymap.

  • Andy

    Wow, took me FOREVER to figure out how to disable this in Webstorm 9. I work with a non-standard eCommerce framework (odd nesting of tags and such) and this feature almost drove me mad. I would suggest not enabling this by default in future versions.

  • john

    This features is terrible! At least now I know how to turn it off.

  • Tony

    Good to know how to turn this off. I use heredoc syntax a lot and this was really thowing things off.

  • demisx

    Doesn’t work well in Stylus files. Had to turn it off too.