Is there a way to tell XCode fold methods/functions by default when opening a file?
To enable code folding, go to the Folding Preferences page, accessible from Window | Preferences | PHP | Editor | Using Code Folding . If Code Folding is enabled, minus signs will appear in the Annotation Bar next to code blocks which can be folded.
If you want to fold / unfold specific blocks of code, since Xcode 7, you have to enable that. Go to Xcode > Preferences > Text Editing > and check 'Code folding ribbon'.
IntelliJ IDEA folds or unfolds the current code fragment, for example, a single method. To collapse or expand all code fragments, press Ctrl+Shift+NumPad - / Ctrl+Shift+NumPad + .
Code folding allows you to easily show and hide blocks of code to make it easier to navigate your source file and focus on the coding task at hand.
If you want to fold / unfold specific blocks of code, since Xcode 7, you have to enable that.
Go to Xcode > Preferences > Text Editing > and check 'Code folding ribbon'.
(No idea why they disabled this useful feature by default.)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With