Replies: 1 comment 3 replies
-
You can do this by adding a key binding to your config: [keys.insert]
S-tab = "unindent" |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Shift+Tab is somewhat common keyboard shortcut that essentially removes a level of indentation. While many popular applications support this shortcut, implementations vary.
In VSCode, Shift+Tab decreases the level of indentation of the entire line, regardless of where the cursor is. In Visual Studio, it deletes a tab's-worth of whitespace behind the cursor (and does nothing if there isn't whitespace behind the cursor). Some applications do nothing, some just treat it as a normal tab.
I suggest we follow the behavior of Visual Studio and just delete a tab of whitespace behind the cursor. If the user wants to decrease the line's indentation, they should use < in Normal mode in my opinion.
Currently, Shift+Tab does nothing in Helix.
P.S. If you're curious why Shift+Tab would behave like this, you can think of the Tab key as telling the rest of the keyboard to do the other symbol on keys pressed. For example, the 2 key instead makes the @ symbol while Shift is held since that key has a "2" and a "@" on it. On many keyboards, the Tab key has a right arrow and a left arrow. If normal tab goes right, holding shift should go left.
Beta Was this translation helpful? Give feedback.
All reactions