Xcode如何将函数折叠、展开? 首先 Preferences -> Text Editing -> Code folding ribbon 勾选上(此功能默认是关闭的)。 接下来我们就能在Editor中看到相应的快捷键。 代码旁边也会有快捷折叠