<p>When Visual Studio (2005) has <em>Options -> Text Editor -> C/C++ -> Tabs -> Indenting</em> set to Smart it will automatically indent code blocks and line up squiggly brackets, {}, as expected. However, if you hit enter inside a code block, move the cursor to another line, and then move it back, the inserted tabs are gone and the cursor is positioned all the way to the left. Is there a way to set Visual Studio to keep these tabs?</p>

[{'answer_id': 73916, 'author': 'moswald', 'author_id': 8368, 'author_profile': 'https://Stackoverflow.com/users/8368', 'pm_score': 3, 'selected': True, 'text': "<p>As far as I know, the only way to do that is to enter something (anything) on that line, then delete it.  Or hit space and you'll never see it there until you return to that line.</p>\n\n<p>Once VS determines that you've edited a line of text, it won't automatically modify it for you (at least, not in that way that you've described).</p>\n"}, {'answer_id': 17349403, 'author': 'John Smith', 'author_id': 2411533, 'author_profile': 'https://Stackoverflow.com/users/2411533', 'pm_score': 1, 'selected': False, 'text': '<p>This is an annoyance to myself as well. Anytime the code is reformatted the blank lines are de-tabbed.\nYou might look at this: <a href="http://visualstudiogallery.msdn.microsoft.com/ac4d4d6b-b017-4a42-8f72-55f0ffe850d7" rel="nofollow">http://visualstudiogallery.msdn.microsoft.com/ac4d4d6b-b017-4a42-8f72-55f0ffe850d7</a> it\'s not exactly a solution but a step in the right direction</p>\n'}]
['https://Stackoverflow.com/questions/73884', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/12776/']