Khaneddy2013
Khaneddy2013

Reputation: 1321

Format Code MS Visual Studio for C# Console project Not working

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: not-working

This is my setting for C#: setting indent

setting 2

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

Answers (1)

Jon Skeet
Jon Skeet

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:

Indentation options

Upvotes: 3

Related Questions