question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Shift-Tab not tabbing back

See original GitHub issue

If I have two tabs and hit Shift-Tab I expect to go back a tab, but instead I am taken back to the beginning of the line, no matter how many tabs I have on that line.

Is this intended behaviour or a bug? I’m not sure.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Reactions:1
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

10reactions
marijnhcommented, Apr 2, 2014

This is intended behavior, but you can configure it.

CodeMirror.keyMap.default["Shift-Tab"] = "indentLess";
CodeMirror.keyMap.default["Tab"] = "indentMore";

Shift-tab is bound to auto-indent the line or selection by default.

8reactions
polkovnikov-phcommented, Mar 21, 2017

I know about this issue for several years, but as nobody commented I feel like I should. This is not expected and obvious behaviour. Most editors unindent on Shift+Tab.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Shift + Tab does not reverse indent, Windows 10 64bit, Microsoft
Hello, Suddenly, my Shift + Tab is not reverse indenting in Word. ... Proofing > AutoCorrect Options > Check Set left- and first-indent....
Read more >
Shift-Tab not tabbing back · Issue #2428 · codemirror ... - GitHub
I agree with this. Shift tabe seems to move back to the start of the line if it is not an auto-indented line...
Read more >
How do I use keyboard tab navigation in reverse? - Super User
Save this answer. Show activity on this post. Shift+tab should do the trick. It also works in Alt-tab to cycle backwards through tabs....
Read more >
How to tab backwards - Quora
Hold "Shift" then press "Tab ". Know that this isn't consistent with all programs, though it's fairly safe to assume it will work...
Read more >
(Un)Indenting block of code with (shift-)TAB not working
If I select a block of code and press TAB, it is replaced by a tab instead of indented. Shift-tab does nothing. I...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found