设置代码大括号不另起一行: 工具 -> 选项 -> 文本编辑器 -> C# -> 代码样式 -> 格式设置 转载于:https://www.cnblogs.com/Jimc/p/10604983.html