If you face the not working tab key in the visual studio editor. Here shows how to make Tab key work.
- Go to Tools->Options->Text Editor->C/C++->Formatting
- Find the "Indentation" group on right side.
- Find the Automatic Indentation On Tab.
- Make it false.
- Enjoy the Tab key :)
If you are working with some other language, Then select the appropriate language instead of C/C++