Objective-C learn and note-6: Get an in-depth understanding of xcode

Source: Internet
Author: User

 

Change the company name in the source code comment: Run terminal. Enter the followingCodePress enter and restart xcode. Replace elf. sundae (AT) gmail.com (only one row)
Defaults write com. Apple. xcode pbxcustomtemplatemedia definitions '{"organizationname" = "elf. sundae (AT) gmail.com ";}'

 

1. Configuration highlighting scheme: fonts & colors
2. keyboard shortcut: key bindings
3. Code indent: Re-indent selection. (Add the shortcut key Alt + F8)
4. automatic Code Completion: Table (Code on screen), ESC (turn on the automatic Completion list)
5. command + [(shift code left), flower +] (shift code right)
6. double-click a separator (for example, {} () []) that matches a bracket. xcode selects it and all the code between the brackets that match it.
7. Quickly rename the local variable name (right-click-edit all in scope) command + Control + T
8. refactor (right-click reflector ...)
9. common cursor control buttons: (also applicable to text fields such as textedit and Safari URL address bar)
upper, lower, left, and right arrows
Control-: move to the beginning of a row (same as command + left arrow)
Control-E: Move to the end of a row (end, same command + right arrow)
Control-K: delete (kill) the code behind the cursor in the row where the cursor is located, so that you can easily rewrite the code at the end of the line.
10. Switch to the header file or source code file: Command + Option + up arrow. You can quickly switch between the header file and the source code file. The menu is view-switch head/source file. Or click the last control of the Code navigation bar.
11. bookmarks: Add bookmarks (command-D, the same as the shortcut key for adding bookmarks in the browser). You can view the added bookmarks under the groups & files project.
12. command + Shift + E: Display/hide the browser pane on the Code screen
13. code folding: Click the gray vertical line on the left. (View-code folding)
14. code function Note:
// MARK: *** (TAG, with the same function # pragma mark ***),
// todo: * **
// fixme: ***
//!!!: ***
//???: ***

15. Control-2: view the member list of the current file quickly
16. Help: Quick help (option + double-click), document search (option + command + double-click)

 

+ Update:

17. Modify the left curly braces (the next line of the IF statement) automatically completed by xcode ):

Run terminal, enter

 
Defaults write com. Apple. xcode xccodesenseformattingoptions-dict blockseparator "\ n"
And then restart xcode.
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.