If it is caused by pressing tab, it is handled by Visual Studio Editor, and behaves according to your setting in Tools/Options/Text Editor :)
Edit: sometimes Visual Studio scans the source file for the first occurrence of a whitespace character, and uses it