Common shortcuts in Xcode and common shortcuts in Xcode

Source: Internet
Author: User

Common shortcuts in Xcode and common shortcuts in Xcode

Create a project com + shift + N

Create File com + N

Preference settings for general com +,

Jump to the specified row com + L

 

The current row adds a breakpoint com ++ \

Com + at the top of the mobile editing area

Com + at the bottom of the mobile editing area

Move cursor row leftmost com + leftmost

Move the cursor to the rightmost com + Right

Forward/backward jump a word option + left & right

Delete A forward word option + delete

Delete all characters after the row where the cursor is located, control + K

Switch between opened files: com + option + left & right

Switch between. h.m and com + control + top and bottom of the current file

 

Code layout control + I or com + X and com + V

 

Select the current row com + shift + left & right

Deselect left & right

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

 

 

Switch to com + 1 in the navigation area ,.... 8

Switch to com + option + 1 in the component area... 5

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

Close or open the Component Attribute area com + option + 0 on the right.

 

Open and Close com + shift + Y in DeBug View

Clear console com + K

Open the console window com + shift + C

Enable or disable resumable com + Y globally

Xcode full screen com + control + F

 

Running Program com + R

Stop the program com +.

Compile program com + B

Static analysis com + shift + B

 

 

 

Open the Standard editor com + press enter)

Open the assistant editing area com + option + press enter)

Open the version editor view com + option + shift + press ENTER

 

 

 

 

 

 

Key description (win keyboard)

Control = Ctrl

Command = Alt

Option = win key

Shift = shift

 

Shortcut Key

1. esc is automatically completed. The function is similar to ctrl + j in VS, such as alt +/in Eclipse/

2. command +/comments code and reverse comments. Use //, equivalent to ctrl +/of Eclipse/

3. The control + command + up/down arrow quickly switches between the header file (. h) and the implementation file (. m ).

4. Compile the program with command + B without running

5. Compile and run the program using command + r

6. command + shift + B analyze the code to find potential memory overflow problems

7. command + Click to jump to the Declaration

8. option + Click Show Help information in the pop-up layer

9. option + command + left/right direction key, fold/open the current method

10. control + command + f Xcode full screen, supported on Lion

11. command + shit + y open/close the console window

12. control + k clear the Console

13. control + command + left/right arrow keys, switch between previous and next files

14. The tab accepts the Current Automatic completion

15. Double-click brackets or braces to select the corresponding closed statement block.

16. command-shift-o: quick search for open files

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

18. commands are used with 1/2/3/4/5/6/7 to display the subviews of each label in the left navigation. commandco + 0 enables or disables the left navigation.

19. option + command is used with 1/2/3/4/5/6 to open each label view in the right attribute window, especially when xib is used. Use option + command + 0 to close the right attribute window.

20. command + shift + j. In the left-side Navigation Pane, locate the currently opened file.

21. Switch command + return to the Standard editor.

22. Switch option + command + return to the auxiliary Editor, which can be compared between the left and right. It is particularly convenient to drag and drop associations during xib editing.

23. command + shift + f for Search

24. Step Into during f7 debugging

25. Step Over during f6 debugging

26. Step Out during f8 debugging

27. control + command + y: continue when debugging breakpoint

28. command + \: Set/cancel breakpoint for the current row

29. command + y enable or disable all breakpoints globally

30. command + left/right direction keys jump to the beginning/end of the line

31. option + left/right direction keys forward/backward jump a word

32. option + delete a word forward

33. Ctrl + k Delete the character behind the row where the cursor is located;

 

 

Below are some collections for now

Control +.: The next Automatic completion prompt

Command + e: search using the selected content

Command + g: Find the next one in the current file

Command-+ shift + f: search

Command + option + shift + t: locate the currently edited file in Groups & Files

Control + a: Jump the cursor to the beginning of the line

Control + e: The cursor jumps to the end of the line

Command + g: Search down

Command + shift + g: search up

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.