"Go" xcode advanced shortcut keys

Source: Internet
Author: User

Xcode shortcuts and gestures not only save valuable work time, but also allow you to feel more confident and able to work in a way that is more reasonable. Learn the following tips to become a senior user of Xcode.

Here are some common key characters for reference (also refer to the international Phonetics alphabet that we don't borrow from the face):

Command Control Option Shift Click
? ? ? ? ?
Quick Open ( ??O)

Learning to open quickly can be less dependent on Project Navigator. This feature is so flattering that Xcode finds what you're looking for with a quick open with a partial match and location matching feature to help you enter the characters.

Quickly view documents ( ??/Three finger Pat)
Open the document ( ???)

A quick view of a document may be the first Xcode shortcut that developers need to learn. Just hold down Alt-click (or three-finger tap) on any class, variable, constant, and Xcode will show you a concise document. ALT + Double-click Opens the document window and enters the relevant interface.

Jump To Definition ( ??)

Another shortcut key that is equally well known to the Xcode user is to jump to the definition, which opens the edit window to the definition of a constant in the relevant @interface definition or .h file. This feature is useful for looking at code in a system frame like Foundation, and can help you see what's going on behind them.

Switch between replicas ( ^?↑/ ^?↓/three finger vertical stroke)

The following, but not the last, is the switch between replicas, which may be the most used shortcut keys every day. .huse the three-finger up-and-down action in the file and its corresponding .m implementation file (you can use/if you like ^?↑ ^?↓ ) to quickly switch.

Note Select part/Current line ( ?/)

Yes, you can debug your code by adding and removing breakpoints, but there's a much simpler and more powerful way to annotate or uncomment your code. This shortcut can add comments to the current line or to the selected section // .

Show Standard Editor ( ?↵)
Show Assistant Editor ( ??↵)
Show Version Editor ( ???↵)

Assistant Editor is so easy to use, but few engineers can accurately remember the shortcut key to switch it. Now remember and in your mind ?↵ ??↵ , you'll be able to get Xcode to help you more.

On the other hand, if you're not satisfied with the way the editor is arranged, you can choose to horizontally arrange vertically in the View > Assistant Editor.

The left and right sides of the editor are like a sandwich, and the Navigation bar and toolbar clip the code in their loving arms. When you need peace of mind, learn how to show useful parts and how to GTFO them to maximize productivity.

Show/Hide the navigation bar ( ?0) Select the Navigation bar ( ?1, ..., ?8)
    1. Project Navigator
    2. Symbol Navigator
    3. Find Navigator
    4. Issue Navigator
    5. Test Navigator
    6. Debug Navigator
    7. Breakpoint Navigator
    8. Log Navigator
Show/Hide Toolbars ( ??0) Select Toolbars ( ??1, ??2, ...) source file
    1. File Inspector
    2. Quick Help
Interface Builder
    1. File Inspector
    2. Quick Help
    3. Identity Inspector
    4. Attributes Inspector
    5. Size Inspector
    6. Connections Inspector
Show/Hide the Debug area ( ??Y)
Activate Console ( ??C)

Does anyone miss a debug window that can be separated independently in Xcode 3? Anyway, I miss it.

Knowing how to open and close the debug area with one click and activate the console may not be much use, but it will help you reduce pain or loss.

Find ?F) /
Find Replacements ( ??F) /
Find in the project ( ??F) /
Find and Replace in the project ( ???F)

Because Xcode's ability to refactor code is too weak ... Or, most of the time, it's not helping. Xcode, on the other hand, supports reference, definition, and regular search for plain text.

Spelling and grammar checking ( ?:)

Clang is so powerful that you can't correct your nightmare grammar and punctuation usage in comments. Especially when someone opens the code to open source, you need to use OS X's built-in spelling and grammar checker to help yourself.

And, of course, there are more interesting things! Like any editor with a shot, Xcode allows you to customize shortcuts for every menu item and all behaviors in the app.

Here are some informal shortcuts that might be useful to help you:

      • ^w: Close document (replaces Delete to Mark)
      • ^?/: Show/Hide the toolbar
      • ^?F: None (get rid of full screen mode (at least before Mavericks))

Go to Xcode advanced shortcut keys

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.