Sublime Forum

Inconsistent space-based indent deletion behaviour

#1

I have the following indent-related settings and the default key-bindings for backspace and delete:
“tab_size”: 2,
“translate_tabs_to_spaces”: true,
“detect_indentation”: true,
“auto_indent”: true,
“smart_indent”: true,
“trim_automatic_white_space”: true,
“indent_subsequent_lines”: true,

If the text is “<SP><SP><SP><SP>if” and I press backspace when the cursor is aligned to the tab size then it always deletes the previous two spaces. However, when I press delete under the same conditions it only deletes a single following space. This is annoying because I normally prefer to use tabs for indentation and don’t expect to have to press delete multiple times to remove an indentation level.

How do I get consistent behaviour of indent deletion between the backspace key and the delete key when the file is indented with spaces?

0 Likes