Enable code-folding by default

前端 未结 7 1909
小鲜肉
小鲜肉 2020-12-23 13:38

Is there a way to tell XCode fold methods/functions by default when opening a file?

7条回答
  •  温柔的废话
    2020-12-23 14:01

    I don't think so, there are some handy keyboard shortcuts though:

    Fold                        ⌃⌘←      control+command+left
    Fold All                    ⌘⌥⇧←     command+option+shift+left
    Unfold                      ⌃⌘→      control+command+right
    Unfold All                  ⌃U       control+U
    Fold Methods/Functions      ⌃⌘↑      control+command+up
    Unfold Methods/Functions    ⌃⌘↓      control+command+down
    Fold Comment Blocks         ⌃⇧⌘↑     control+shift+command+up
    Unfold Comment Blocks       ⌃⇧⌘↓     control+shift+command+down
    Focus Follows Selection     ⌃⌥⌘F     control+option+command+F
    

提交回复
热议问题