[英]how to disable indent for close braces in Visual Studio C#
when I type {} in my code for examples it likes:当我在我的代码中输入 {} 以获取它喜欢的示例时:
foreach(var item in items) {
}
but I want但我想要
foreach(var item in items) {
}
Even I did options -> C# -> Code Style -> Formatting -> Indentation -> unclick indent open and close braces
.即使我做了选项 -> C# -> 代码样式 -> 格式 -> 缩进 -> 取消单击indent open and close braces
。 So what's wrong with me?那我怎么了?
Go to Tools -> Options -> Text Editor -> Basic -> Advanced -> Editor Help -> ensure "Pretty Listing (reformatting) of code" is enabled. Go 到工具 -> 选项 -> 文本编辑器 -> 基本 -> 高级 -> 编辑器帮助 -> 确保启用“代码的漂亮列表(重新格式化)”。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.