简体   繁体   中英

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: 未工作

This is my setting for C#: 设置缩进

设置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

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:

缩进选项

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM