Common Xcode shortcuts and xcode shortcuts
1. File
CMD + N: New File
CMD + SHIFT + N: new project
CMD + O: Open
CMD + S: Save
CMD + OPt + S: Save all files
CMD + SHIFT + S: Save
CMD + W: Close the window
CMD + Q: Exit Xcode
CMD + SHIFT + W: Close the file
2. Edit
CMD + [: Left indent
CMD +]: Right indent
CMD + shift + F: Search in Project
CMD + G: Find the next
CMD + shift + G: Find the previous
Ctrl + F: move the cursor forward
Ctrl + B: move the cursor behind
Ctrl + P: move the cursor to the top row
Ctrl + N: move the cursor to the next row
Ctrl + A: move the cursor to the beginning of the line (replace the Home key)
Ctrl + E: move the cursor to the end of the row (replace the end key)
Ctrl + T: swap the characters on both sides of the cursor
Ctrl + D: Delete the character on the right of the cursor
Ctrl + L: place the insert point in the center of the window
Ctrl + K: delete this row
Ctrl +.: parameter prompt
Tab: receive code prompts
Esc: displays the code prompt menu
CMD +/: comment or cancel the comment
CMD + CTRL + LEFT: Fold
CMD + CTRL + RIGHT: unhide
CMD + CTRL + TOP: collapse all functions
CMD + CTRL + BOTTOM: cancel all function folding
CTRL + U: cancel all collapse
CMD + D: Add bookmarks
3. debugging
CMD + \: set or cancel a breakpoint
CMD + OPT + \: Allows or disables the current breakpoint
CMD + OPT + B: View All Breakpoints
CMD + RETURN: Compile and run (determine whether to enable breakpoint Based on settings)
CMD + R: Compile and run (do not trigger breakpoint)
CMD + Y: Compile and debug (trigger breakpoint)
CMD + SHIFT + RETURN: stops running or debugging
CMD + Alt + P: Continue (in debugging)
CMD + Alt + 0: Skip
CMD + Alt + I: Jump
CMD + Alt + T: Jump out
CMD + B: Compile
CMD + SHIFT + K: Clear
4. Form
CMD + SHIFT + B: compilation window
CMD + SHIFT + Y: debugging code window
CMD + SHIFT + R: Debugging Console
CMD + SHIFT + E: Adjust the main editing window
5. Help
CMD + OPT +? : Development Manual
CMD + CTRL +? : Quick help
6. Xcode code formatting/automatic formatting:
Xcode versions: versions earlier than 4.2 and 4.2
Select the code to be formatted-> Edit-> Format-> Re-Indent
Xcode version: Versions later than 4.2
Select the code to be formatted-> Editor-> Structure-> Re-Indent or
Select the code to be formatted-> right-click-> select Structure-> Re-Indent