Xcode 设置代码不自动换行 “command + ,”打开设置界面后,找到“Text Editing” 然后选择“Indentation”, 最后找到“line wrapping”并将对勾取消即可。