Xcode question: quickly jump to a specific selector / class / character?

What is the fastest way to go to a specific character / selector / class in Xcode? (I'm looking for suitable keyboard shortcuts).

Now I know two ways to do this:

  • Open quickly> Click the Symbols drop-down menu at the top of the editor> Select the selector to go to it.
  • Click "Project Symbols" in the "Groups and Files" section of the left side panel and enter a name in the "Search" field in the upper right corner of the Xcode window.

Is there a faster way to do this? (If I could even assign a shortcut to go to "Project Symbols", that would be enough for me. Alternatively, if I can find a keyboard shortcut to go to the output of the symbol above the editor that will do this).

For experienced Xcode programmers, what do you use to jump to a character?

+7
objective-c xcode cocoa
source share
4 answers

In Xcode 3.2, the Open Quick Command (Shift-Control-D) allows you to enter selectors and class names, as well as file names. This will at least bring you closer to what you wanted.

Your idea of ​​using the Symbols drop-down list also works. You can use the Control-2 key combination to open the Symbols drop-down menu, and then use the arrow keys or start typing in the name of the method you want to achieve.

Change In Xcode 4, when you press Control-6, the Symbols drop-down list appears. You can change this in the Xcode settings by changing the key binding for "Standard Editor> Show Document Elements".

+18
source share

If you look at the symbol in the source file and want to go to its definition, ⌘-click it.

+7
source share

(command + double click) on your symbol / selector / class anywhere in your implementation to go to them (option + double click) in classes / infrastructure selectors to go to their help in the reference documentation

+2
source share

One (possibly rude) way to do this is as follows:

This is based on the fact that the search field in the upper right corner of the Xcode window seems to change behavior depending on what is selected in the "Groups and Files" sidebar.

  • Select Project Symbols in the Groups and Files Sidebar
  • Press βŒ₯⌘F (This is Command + Option + F) to go to the search field
  • Enter a character to jump to it, and the chart will quickly display

(this will work until you click something else on the sidebar of the groups and files)

+1
source share

All Articles