1、打开XCode->Perferences...,如下图所示:

Xcode11将函数折叠、展开

2、在打开的对话框中选择Text Editing将Code folding ribbon打上对勾即可。

Xcode11将函数折叠、展开

3、此时代码就可以收缩了,如下图所示:

Xcode11将函数折叠、展开

相关文章: