View code structure
By default, AppCode shows all classes, methods, functions, defines, and other elements of the current file.
![Structure tool window Structure tool window](https://resources.jetbrains.com/help/img/idea/2022.2/ac_structure_tool_window.png)
Show and hide inherited members
Click
on the toolbar:
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]; }
![Swift annotations Swift annotations](https://resources.jetbrains.com/help/img/idea/2022.2/ac_annotations_swift.png)
Last modified: 20 April 2022