Shortcuts for Xcode IOS development environment
Shortcut Key
Edit File
CMD + N: New file; CMD + SHIFT + N: new project; CMD + O: open;
CMD + S: Save; CMD + SHIFT + S: Save;
CMD + W: Close the window; CMD + SHIFT + W: Close the file
Edit
CMD + [: Left indent; CMD +]: Right indent;
CMD + CTRL + LEFT: fold; CMD + CTRL + RIGHT: unfold;
CMD + CTRL + TOP: collapse all functions; CMD + CTRL + BOTTOM: cancel all function collapse;
CTRL + U: cancel all folds;
CMD + D: Add bookmarks; CMD +/: comment or cancel comments;
CTRL +.: parameter prompt; ESC: Automatic prompt list
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: terminate the operation or debug;
CMD + B: compile;
CMD + SHIFT + K: clear;