XCode:将一个长注释拆分为固定字符数的多行

标签 xcode comments

默认情况下,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/

相关文章:

ios - UICollectionView:更新节页脚标题

ios - Google map SDK iOS 卫星 View

c++ - 在 CMake 中隐藏 <project>_automoc 目标

ios - Cocos2d - 更改为背景图像

python - python中注释 block 缩进

sql - 如何让 Emacs sql-mode 识别 MySQL #-style 注释?

xcode - xcode 6.1 中的 UIColor(调用中的额外参数)

javascript - 是什么原因导致 Blogspot 中的 Google+ 评论在某些页面上不起作用?

javascript - --> 在 JavaScript 中做什么?

parsing - 使用 ANTLR 捕获(并保留)所有评论