更新时间:2021-11-07 21:55:43
是的,如elgonzo的评论所建议的那样,行为是通过转到工具"来控制的.菜单,然后选择选项->文字编辑器-> C#->代码样式->格式化->包装纸
Yes, as suggested by elgonzo's comment that behavior is controlled by going to the "Tools" menu, then Options -> Text Editor -> C# -> Code Style -> Formatting -> Wrapping
在同一行上检查"Leave语句和成员声明"
Check "Leave statement and member declarations on the same line"