Reference: http://www.linuxidc.com/Linux/2012-08/67905.htm
Xcode Common shortcut keys
Hide Xcode command+h
Exit Xcode Command+q
Close Window Command+w
Close all Windows Command+option+w
Close the current project Command+control+w
Close the current file command+shift+w
Save File Command+s
Save All Files Command+option+s
Revert to save State command+u
Find Command+shift+f in Projects
Find the next Command+g
Find Previous Command+shift+g
Browse Source Files Command+double Click
Open the header file Command+shift+d
Toggle Header/Source file command+option+ up arrow
Revoke Command+z
Repeat Command+shift+z
Shear Command+x
Copy Command+c
Paste Command+v
Paste and Match format command+option+shift+v
Select All Command+a
Comment command+/
File first line command+ up arrow
End of file command+ down arrow
Command+ left arrow at beginning of line
End of line command+ right arrow
Previous word option+ left arrow
Next word option+ right arrow
Previous split word control+ left arrow
Next split word control+ right arrow
Tab: Accept Code hints
ESC: Show Code hints menu
Next build warning or error command+=
Previous build warning or error command+shift+=
Run the program in debug mode command+y
Continue (in debugging) command+option+p
Compile Run Command+r
Xcode Code formatting/auto-typesetting:
Xcode version: Versions prior to 4.2 and 4.2
Select the format->re-indent you want formatting code, Edit-
Xcode version: Version after 4.2
Select the need to format code, Editor, Structure->re-indent or
Select the need to format code, right-click, and select Structure->re-indent
Automatic alignment:
Cut command+x +++++++++++ Paste Command+v
[iOS] Xcode Common shortcut keys