Reputation: 1321
Excuse me,
I use Ms Visual Studio 2010.
I try to follow many suggestion at this case, but I am still failed to make this functionality working well..
This is my code, still not formated well:
This is my setting for C#:
should I move to another IDE? I am familiar with intellij idea and netbeans IDE. But that IDE not supported C# Development... Any sugestion?
Thank You
Upvotes: 1
Views: 515
Reputation: 1500835
I suspect the problem is in your formatting options.
Under Options / Text Editor / C# / Formatting / Indentation, make sure that the "Indent open and close braces" box is not checked. Your code looks like it's formatted perfectly for a configuration where that box is checked. This is what my set of options looks like for that dialog:
Upvotes: 3