IOS Xcode shortcut keys Daquan _ios

Source: Internet
Author: User

There are a number of shortcuts in Xcode that make your programming work more efficient, and are extremely effective for fast navigation, locating bugs, and adding new application features to code files.

Of course, the purpose of your poking into this article is to quickly manipulate the code files, or to make Xcode's panels more adaptable to your little notebook screen.

The following are the first to be learned in Xcode all shortcut keys. After you learn how to use it, you may never be separated from them.

Common shortcut keys in Xcode

New project COM + shift +n

New file COM + N

Preference Settings General COM +,

Skip to specified line COM + L

Current Line plus breakpoint COM + \

Move Edit Area top COM + above

Move edit Area bottom COM + below

Move cursor on the left side of the line COM + left

Move cursor to the rightmost COM + right

Move forward/after jump a word option + left & Right

Delete a Word forward option + DELETE

Remove all character control + K after the line where the cursor is located

Switch COM + OPTION + left & right between open files

Switch COM + control + up & down between the current file's. h. m

Code layout Control + I or COM + X and COM + V

Select Current line COM + SHIFT + left & Right

Uncheck Left & Right

Select local variable com +control + E for the current scope

Navigation Area Switch COM +1,.... 8

Component Area switch COM + OPTION + 1 ... 5

Close or open the navigation area on the left COM + 0

Close or open the Component property area on the right side COM + OPTION + 0

Debug area View Turn off COM + SHIFT + Y

Cleaning console COM + K

Open the console window COM + SHIFT + C

Globally activate or disable breakpoints COM + Y

Xcode Full Screen COM + control + F

Run program COM + R

Stop program COM +.

Compiling program COM + B

Static analysis COM + SHIFT + B

Open the Standard editor COM + ENTER (enter)

Open Assistant Edit area COM + OPTION + carriage return (enter)

Play version editor view COM + OPTION + SHIFT + ENTER

Key description (Win keyboard)

Control = Ctrl

Command = Alt

option = Win key

Shift = Shift

Shortcut keys

1. ESC completes automatically, and is similar to the ctrl+j in VS, like Eclipse's alt+/

2. Command +/Comment Code and counter annotations, with//, equivalent to Eclipse's ctrl+/

3. Control + COMMAND + up/down arrows quickly toggle between header (. h) and implementation (. m) files

4. Command + b Compile the program, do not run

5. Command + R compile and run the program

6. Command + SHIFT + B analyze code to find potential memory overflow problem

7. Command + click Jump to declaration

8. Option + click the pop-up layer to display Help information

9. Option + COMMAND + Left/right ARROW key, fold/open current method

CONTROL + COMMAND + F Xcode full screen, supported on Lion

Command + shit + y Open/close the console window

Control + K Cleanup console

CONTROL + COMMAND + Left/right ARROW key, toggle in history/Next file

tab to accept the current AutoComplete

15. Double-hit brackets or curly braces, you can select the appropriate closed statement block

Command-shift-o: Quick Search Open files

Control with 1/2/3/4/5/6 key: You can quickly open related files/classes or code, I often control+1 display open files, control+6 display the current class variables or methods, can be entered to filter

Command coordination 1/2/3/4/5/6/7 displays the child view of each label in the left navigation in turn, commandco+ 0 turns left navigation on or off

OPTION + command with 1/2/3/4/5/6 opens each tab view of the right-hand property window in turn, especially at xib times, with OPTION + COMMAND + 0 to close the right property window

Command + SHIFT + J Locate the currently open file in the left navigation

Command + return switch to Standard editor

OPTION + COMMAND + RETURN switch to the secondary editor, left and right can be compared, especially convenient to edit xib when dragging association

Command+shift+f for Search

F7 when debugging step into

F6 when debugging step over

F8 Step out when debugging

Control + COMMAND + y:debug breakpoint continue

Command + \: Current line set/Cancel Breakpoint

Command + y global Activate or disable all breakpoints

Command+ Left/Right ARROW key jumps to beginning/end of line

Option + Left/RIGHT ARROW key forward/backward jump a word

OPTION + Delete forward Deletes a word

Ctrl + K Deletes the characters following the line at which the cursor is located;

Some of the following temporary collections

Control +. : Next automatic completion prompt

Command + E: Use current selection to find

Command + G: Find Next in current file

command-+ SHIFT + F: Find in Project

Command + OPTION + Shift +t: Navigate to the currently edited file in Groups&files

control+ A: The cursor jumps to the beginning of the line

Control +e: Cursor jumps to end of line

command+ g: Looking Down

Command+shift+g: Looking up

Thank you for reading, I hope to help you, thank you for your support for this site!

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.