How can I make VS2010 behave like VS2008 w/r/t indentation?

Posted by Portman on Stack Overflow See other posts from Stack Overflow or by Portman
Published on 2010-04-16T15:18:01Z Indexed on 2010/04/19 0:43 UTC
Read the original article Hit count: 526

Situation

I have a plain text file where indentation is important.

line 1
  line 1.1 (indented two spaces)
  line 1.2 (indented two spaces)
    line 1.2.3 (indented four spaces)

In Visual Studio 2008, when I pressed enter, the next line would also be indented four spaces.

However, in Visual Studio 2010, when I press enter, the next line is indented one tab.

Question

Does anybody know where, in the mountain of preferences under Tools > Options, I can return to the way that Visual Studio 2008 worked?

Under Options > Text Editor > Plain Text > Tabs, I see the following:

Options Dialog

If I select "None", then I get no indentation when I move to the next line. If I select "Block", then I get TAB indentation (even though the previous line is spaces).

In Visual Studio 2008, my indentation is set to "Block", and I get spaces.

I have no idea what "Smart" indenting is, or why it is disabled.

© Stack Overflow or respective owner

Related posts about visual-studio

Related posts about visual-studio-2008