Does Xcode support regions?

后端 未结 8 1348
慢半拍i
慢半拍i 2020-12-06 04:15

Does Xcode support anything akin to Visual Studio style #region directives for arbitrary code folding?

8条回答
  •  -上瘾入骨i
    2020-12-06 04:26

    Without support for .Net style regions, being able to collapse all your functions at the same time is the next best thing.

    command-option-shift-left arrow to collapse all.

    command-option-shift-right arrow to expand all.

    Xcode will remember the last state of collapsed functions.

提交回复
热议问题