Common Xcode shortcuts and xcode shortcuts

Source: Internet
Author: User

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

 

Related Article

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.