Navigating through the source code
You can quickly navigate within your source code using different action such as autoscroll, bookmarks, or the Select In pop-up. You can also look up a symbol declaration and its type, see implementations, and quick definitions.
Navigate with Select In to a target in the Project view
You can automatically locate a class in the Project tool window.
If the class in question is opened in the editor, press ⌥F1 for the Select in pop-up.
- In the pop-up, select Project View and press ⏎.
AppCode locates your target in the Project View window.
Use Autoscroll to locate a file
You can use the scroll to and from actions to locate your file in the Project view.
In the Project tool window, right-click the Project area.
From the context menu, select Autoscroll from Source. AppCode tracks a file that is currently open in the editor and locates it in the Project view automatically.
You can also select the Autoscroll to Source option. In this case, when you click a file in the Project view, AppCode will automatically open it in the editor.
Use bookmarks for navigation
You can add a bookmark to any line of your code.
- On the desired line of code, press the following shortcuts:
F3 to create an anonymous bookmark.
Press ⌥F3 and select a number or a letter to create a book mark with mnemonics.
Press N/A or N/A to show next or previous bookmark.
Press ⌘F3 to open the Bookmarks dialog where you can manage bookmarks, for example, you can delete, sort bookmarks, or supply them with a brief description.
If you have a bookmark with letter mnemonics, press ⌘F3 and press the letter you need. AppCode returns you back to the editor and to the corresponding bookmark.
If you need to navigate to an existing bookmark with number mnemonics, press Ctrl and the bookmark's number.
Every created bookmark is reflected in the Favorites (⌘2) tool window which you can also use for navigation to your bookmarks.
Go to declaration and its type
You can navigate to the initial declaration of a symbol and symbol's type from its usage.
Place a caret at a symbol in question and press ⌘B.
For a type declaration, press ⇧⌘B.
Go to Implementation
You can keep track of class implementations and overriding methods using either the gutter icons or the appropriate shortcuts.
Click the one of / , / gutter icons and select the desired ascendant or descendant class from the list.
Press ⌘U to navigate to the super method.
Press ⌥⌘B to navigate to the implementation.
Locate the source code element with Structure view
You can use the structure view pop-up to locate a code element in the file you are working on.
Press ⌘F12 to open the structure view pop-up.
- In the pop-up, locate the item you need. You can start typing the name of the element and AppCode narrows down the search. Press ⏎ to return back to the editor, and the corresponding element.
While in the pop-up, you can sort the file members, see anonymous classes, and inherited members.
Moreover, you can visually separate methods in your code. To do that, open the Show method separators option.(⌘,) dialog, go to and select the