简体   繁体   English

格式代码MS Visual Studio for C#控制台项目不起作用

[英]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: 对不起,我使用的是Visual Studio 2010.我尝试在这种情况下遵循许多建议,但我仍然无法使这个功能运行良好..这是我的代码,仍然没有很好地编写: 未工作

This is my setting for C#: 这是我对C#的设置: 设置缩进

设置2

should I move to another IDE? 我应该转移到另一个IDE吗? I am familiar with intellij idea and netbeans IDE. 我熟悉intellij idea和netbeans IDE。 But that IDE not supported C# Development... Any sugestion? 但那个IDE不支持C#开发......任何消化?

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. 在选项/文本编辑器/ C#/格式/缩进下,确保选中“缩进打开和关闭括号”框。 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: 这就是我对该对话框的选项集:

缩进选项

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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