Xcode Common shortcut keys

Source: Internet
Author: User

Familiar with Xcode's common shortcut keys, you can quickly adjust the layout of the code, function. In particular, a number of commonly used shortcut keys, it should be encoded must use AH. The special arrangement is as follows:

Command equivalent to win key;

Control is equivalent to the CTRL key;

Option equals the ALT key;

Typography shortcut keys

Command + [ move the selected code to the left

Command +] move the selected code to the right

Right-click menu, select Structure-->re-indent, automatically format code

Folding the code (that is, the contraction code, equivalent to the-number of VS), Click the Focus column to the left of the code, you can collapse the code.

Add a readable tag to the code to include #pragma mark

tab Blank

ESC Opens the AutoComplete list (E for enumeration types,F for Functions, # for #define macros,m for methods, andC for classes )

Control +. automatically recommend forward loops without displaying auto-complete list

SHIFT + CONTROL +. Auto-complete list is not displayed and the recommended value reverse loop is automatic

Control +/ move to Next placeholder

Command + SHIFT + D Open File Quick Find dialog box

Command + OPTION + UP ARROW to view the file's companion file (open h file if currently viewed as m file, or vice versa)

Command + S saves the current file

Command + C Copy

Command + X-cut

Command + V Paste

Command + B build, compile

Command + R Run, run

Command + F in file search

Hold down the option key and double-click the selection to find the document Help for the selected character;

F5 execution to the next breakpoint (pause/continue)

F6 execution to next step (step over)

F7 jumping into function execution (Step into)

F8 Jump function Execution (Step out)

Control + F ForWord right cursor one character

Control + B Back move left cursor one character

Control + P Previous lien move cursor up

Control + N Next line Move down cursor

Control + A line head moves to the wardrobe

Control + E Line end moves to end of row

Control + T Transpose swap cursor on both sides of the match

Control + D Delete deletes the character to the right of the cursor

Control + K Kill deletes the code after the cursor in the line where the cursor is located .

Control + L places the insertion point in the middle of the window.

In addition, left click on the top left corner xcode--"preferences--" key Bindings, you can customize these shortcuts according to your preferences. Shortcut keys are one of the ways to improve efficiency, or it's a matter of some kind.

Attach another Xcode setting for each url:http://www.cocoachina.com/ios/20141225/10761.html

Xcode common shortcut keys (GO)

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.