Xcode Common shortcut keys

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.