44

When programming in VS Code, I always use the Tab key for indenting. But, I was surprised that is stopped working all of a sudden. How do I fix this?

Armster
  • 555

2 Answers2

83

You have enabled the Tab Moves Focus -mode.

Press Ctrl+M to disable the mode. After that your Tab-key indents your code again.

0

The others are correct - Ctrl+M should work in most cases, but some language plugins will also take over that keystroke. For example in Markdown pressing Ctrl+M will insert $$ and put the cursor between the $s.

The surefire way to fix it is to bring up the Command Palette (Ctrl+Shift+P) and type tab key moves - that should get you to the right option.

mngeek206
  • 1,441