Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2010 Won't Auto-Indent Lines

Visual Studio 2010, used to auto indent my lines, and now suddenly it won't do that, for example, when I created a method, it looked like that:

public static void Foo (int FooInt)
{
    // Some methods stuff...
}

but now, it looks like that:

public static void Foo (int FooInt)
{
// Some method stuff...
}

I can't find any answer for that, what can I do?

I am using Visual Studio 2010, Windows 7 64 Bit

Update: Turns out my problem on resides on C#, when I am trying it on a C++ project, indentation work perfectly... Any suggestions?

Update:

Problem was solved, unexpectedly by re-installing Windows.

like image 599
Itamar Avatar asked Sep 18 '11 14:09

Itamar


1 Answers

I was having the same problem and after changing Indenting from Block to Smart it started working!enter image description here

like image 105
Alexanderius Avatar answered Sep 23 '22 13:09

Alexanderius