默认情况下,XCode 中的单行注释自动换行。有没有办法强制评论跨越多行
不
// So that really long comments that would not normally be split across multiple lines like this one, which look really annoying in git commit history or other editors which do not text wrap like the one on stack overflow . . . .
但是
// So that really long comments
// end up split across multiple
// lines like this?
最佳答案
Xcode Preferences -> Text Editing -> Indentation (clickable text) 并取消选择 Line wrapping
关于XCode:将一个长注释拆分为固定字符数的多行,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27247925/