Can you set code regions in Xcode?

前端 未结 6 1355
忘掉有多难
忘掉有多难 2020-12-31 01:03

When writing c#, in Visual Studio, you can set regions to group code accordingly. Being new to Xcode I can\'t seem to find a similar feature.

6条回答
  •  佛祖请我去吃肉
    2020-12-31 01:19

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

    command-option-shift-left arrow to collapse.

    command-option-shift-right arrow to expand.

    Xcode will remember the last state of collapsed functions.

提交回复
热议问题