2012-10-22

xCode Tips

xCode Code-Folding

Fold                        ⌃⌘←     control+command+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

Indent

Indent Block Left                 ⌘[      command + [ 
Indent Block Right                ⌘]      command + ] 

Auto Indent 
step: 
1. select text 
2. right-click 
3. Click on "Structure" 
4. there's a "Re-indent selection" and other options in popup menu