View code structure
Last modified: 04 April 2023The Structure tool window: View | Tool Windows | Structure or Alt+7
The Structure popup: Navigate | File Structure or Ctrl+F12
By default, AppCode shows all classes, methods, functions, defines, and other elements of the current file.

Show and hide inherited members
Click
on the toolbar:
Gif
Group members
In Swift and Objective-C, you can group class members in the Structure tool window by annotating them in your source code.
In Swift: add the
// Mark:
comment before the members that you want to group. For example:// MARK: - Actions @IBAction func buttonLoginPressed(_ sender: Any) { self.dismissKeyboard() self.performLogin() }
In Objective-C: add the
#pragma mark
comment before the members that you want to group. For example:#pragma mark - Actions - (IBAction)buttonLoginPressed:(id)sender { [self dismissKeyboard]; [self performLogin]; }
note
If you add a dash
-
before the comment, the line separator appears before the group name in the Structure tool window.

You can also see the VCS status color hints in the Structure tool window if your project is under version control. It helps you to make tracking changes in files more convenient. The names of modified objects become blue, and the names of the newly added objects appear in the tool window highlighted in green.

Thanks for your feedback!