After upgrading from 7.x to 8.x I noticed an annoying new "feature". When on an empty line (after pressing enter), then pressing backspace (which used to get rid of the indentation character right in front of the caret) the line is erased and the caret jumps back to the end of the line above.
Given the following code snippet and caret placement:
pressing Backspace does this:
How do I turn this off?
As of PhpStorm 9+, this setting is located in it's own section under Editor > General > Smart Keys > Backspace
. Setting the Unindent
drop-down to Disabled
will give you the behaviour you would expect.
The solution is to disable "Backspace smart indent" by going to File > Settings
(or pressing CtrlAltS) then
IDE Settings > Editor > Smart Keys
Backspace smart indent
and removing the tick from check box next to said option.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With