Mac版Visual Studio 2017默认花括号是换行的,而且设置藏的比较深,找了半天现在总结一篇文章备用
点击左上角Visual Studio 然后选择Preferences

选择Surce Code -> Code Formatting -> C# source code

右侧选择C# Format 然后点击Edit

Category选择New Lines 取消所有勾选

有些Unity的方法还是会自动换行,等解决了回来补充
Mac版Visual Studio 2017默认花括号是换行的,而且设置藏的比较深,找了半天现在总结一篇文章备用
点击左上角Visual Studio 然后选择Preferences
选择Surce Code -> Code Formatting -> C# source code
右侧选择C# Format 然后点击Edit
Category选择New Lines 取消所有勾选
有些Unity的方法还是会自动换行,等解决了回来补充
本文标题:Mac版Visual Studio 2017 设置花括号换行
本文链接:https://www.haomeiwen.com/subject/iegklxtx.html
网友评论