Treat backspace like tab delete at beginning of line

13 Jul 2011

I find it awkward that I need to press backspace 4 times to undo indentation in my code. In some other editors I have used, they solve this problem by looking at what text precedes the caret position when the backspace key is pressed. If the current location is only preceded by whitespace and the current caret position is on a tab stop (multiple of 4 spaces) then actually delete the preceding 4 spaces instead of a single space.