Common shortcuts for iOS development and ios shortcuts

Source: Internet
Author: User

Common shortcuts for iOS development and ios shortcuts

2. Basic Xcode shortcut

  1. Create a project Shift + CMD + N

  2. Create a file CMD + N in the project

  3. Run CMD + R

  4. Compile CMD + B

  5. Stop running CMD +.

  6. Clear cache Shift + CMD + K

  7. Left indent CMD + [

  8. Right indent CMD +]

  9. Close project CMD + W

  10. Terminate the program CMD + Q

  11. Annotate or uncomment CMD +/

  12. Automatic prompt list ESC

3. Common keyboard shortcuts for Simulators

  1. Simulator Home Key Shift + CMD + H

  2. Simulator screenshot CMD + S (saved to the desktop by default)

  3. Copy Ctrl + CMD + C (saved on the clipboard) from the simulator screenshot)

  4. Simulator to screen CMD + →/CMD + Simulator

  5. Simulator size switch CMD + 1/2/3/4

  6. Simulator screen lock CMD + L

  7. The keyboard CMD + K is displayed in the text box.

  8. Enter Shift + CMD + K on the keyboard in the text box

4. Xcode editing shortcut

  1. Ctrl + P (previous)

  2. Ctrl + N (next) Down)

  3. Forward Ctrl + F (forward)

  4. Ctrl + B (back)

  5. Jump to the beginning of A row, Ctrl + A (ahead)

  6. Jump to the end of a row, Ctrl + E (end)

  7. Delete the subsequent characters Ctrl + D (delete)

  8. Delete all text behind the current cursor row Ctrl + K

  9. Delete all the text following the current cursor line CMD + Delete

  10. Control + Y: paste the content deleted with Control + K or CMD + Delete to the position where the cursor is located.

  11. Delete the word Ctrl + Delete before the current cursor

  12. Change the characters on both sides of the current cursor Ctrl + T

  13. Place the cursor insertion point in the center of the window Ctrl + L

  14. Copy, cut, paste, and undo

5. Common Xcode shortcut keys (Direction arrow)

  1. Press Ctrl + CMD + right arrow on the editing page

  2. On the editing page, press Ctrl + CMD + left arrow.

  3. Code block collapse CMD + Option + left arrow

  4. Code block expand CMD + Option + right arrow

  5. Show or collapse all code blocks Shift + CMD + Option + left and right arrows

  6. Switch the. m and. h file CMD + Ctrl + up and down arrows

  7. Jump to the beginning or end of the current editor CMD + up and down arrow

  8. Jump to the beginning or end of a line, CMD + left and right arrows

  9. Jump to the beginning or end of this section, Option + up and down arrow

  10. Option + right arrow

  11. Select Shift + up and down arrows in the forward or backward rows

  12. Select Shift + Option + up/down arrow for the entire forward or backward segment

  13. Select All Shift + CMD + up and down arrows

6. Common Xcode shortcut keys

  1. Double-click the word where the cursor is located

  2. Select the entire line of the cursor and triple-click it.

  3. Focus jump to project navigator CMD + 1

  4. Show/hide the navigator panel CMD + 0 (zero)

  5. Show/hide Utility panel y cmd + Option + 0 (zero)

  6. Display/hide print panel Shift + CMD + Y

  7. Open dual view and open the file Option + left mouse click on the right of the dual View

  8. Disable dual-view CMD + Enter

  9. Open dual-view CMD + Option + Enter

  10. Quickly switch to a file using the keyword CMD + Shift + O

  11. Open API document Option + double-click

  12. Quick open method or keyword help Option + Click

  13. Expand all folders in the project. CMD + Shift + J

  14. Move the selected code Option + CMD + parentheses forward or backward

7. Personal experience in using shortcuts
Do not remember it. When you think about code, you may need to check it and remember it slowly.

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.