Common xcode4 shortcut keys-you have to use xcode4.

Source: Internet
Author: User

The main menu changes greatly, while the build and run operations are all done. The changes to shortcut keys naturally increase. Since the interface builder has been built into xcode, the shortcut keys of the corresponding panel are replaced by command + Option + number in the previous command + number, but they are not directly matched. Connect option + command + up in. H and. the experience of switching between m is not good. If you have a touchpad, please use three fingers to move up and down to switch. This is not good for IMAC or black apple.

For the shortcut keys of xcode 4, directly add two images. In fact, the two images are the same, but the background color is different. The white background can be printed and pasted on the photo wall. You can check them every day.

 

The shortcut keys for debugging are also similar to those for most ides. Simple buttons F5, F6, And F7 are used, but they are not that simple for MACOs, because the FN key must be used together, such as F5, F6, And F7.

In debug, continue is option + command + P in xcode3, and now it is Control + command + Y

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
Or slide with two fingers

Command replaces many operations on the PC keyboard, such as Ctrl + V, CTRL + C, CTRL + Z, and should all use cmd + V, CMD + C, CMD + z

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. FN + Option + delete a word backward
34. Command + delete all characters before the cursor in the current row
35. FN + command + delete all characters after the cursor in the current row

Below are some collections for now

Control +/: switch to the next placeholder (automatically completed)
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

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.