1. Documents
CMD + N: New file
CMD + SHIFT + N: New Item
CMD + O: Open
CMD + S: Save
Cmd+opt+s: Save All Files
CMD + SHIFT + S: Save As
CMD + W: Close window
CMD + Q: Exit Xcode
CMD + SHIFT + W: Close file
2. Editing
CMD + [: Left Indent
CMD +]: Right Indent
Cmd+shift+f: Find in Project
Cmd+g: Find the next
Cmd+shift+g: Find Previous
Ctrl + F: Move forward cursor
Ctrl + B: Move the cursor back
Ctrl + P: Move the cursor to the previous line
Ctrl + N: Move the cursor to the next line
Ctrl + A: Move the cursor to the beginning of the line (replace the home button)
Ctrl + E: Move the cursor to the end of our line (replace the end key)
Ctrl + T: Swap the characters on the left and right side of the cursor
Ctrl + D: Remove the character to the right of the cursor
Ctrl + L: Places the insertion point in the middle of the window
Ctrl + K: Delete Bank
Ctrl +. : Parameter Hints
Tab: Accept Code hints
ESC: Show Code hints menu
CMD +/: Comment or uncomment
CMD + CTRL + Left: Folding
CMD + CTRL + right: Cancel collapse
CMD + CTRL + TOP: Collapse All functions
CMD + CTRL + BOTTOM: Cancel All function folding
CTRL + U: Cancel all folds
CMD + D: Add Bookmark
3. Commissioning
CMD + \: Set or Cancel breakpoints
CMD + OPT + \: Allows or disables the current breakpoint
CMD + OPT + B: View all Breakpoints
CMD + RETURN: Compile and run (determines whether breakpoints are enabled based on settings)
CMD + R: Compile and run (without triggering breakpoints)
CMD + Y: Compile and debug (trigger breakpoint)
CMD + SHIFT + RETURN: Terminate run or debug
CMD + Alt + P: Continue (in debug)
CMD + Alt + 0: Skip
CMD + Alt + I: Jump in
CMD + Alt + T: Jump out
CMD + B: Compile
CMD + SHIFT + K: Cleanup
4. Form
CMD + SHIFT + B: Compile window
CMD + SHIFT + Y: Debug Code Window
CMD + SHIFT + R: Debug Console
CMD + SHIFT + E: main edit window Adjustment
5. Help
CMD + OPT +?: Development Manual
CMD + CTRL +?: Quick Help
6, Xcode code formatting/automatic layout:
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
Xcode Common shortcut keys