Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Enable code-folding by default

Is there a way to tell XCode fold methods/functions by default when opening a file?

like image 842
Infinite Avatar asked Mar 02 '10 15:03

Infinite


People also ask

How do I enable code folding?

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.

How do I enable code folding in Xcode?

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'.

What is code folding IntelliJ?

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 + .

What is code folding in R?

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.


1 Answers

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'.

Xcode's Text Editing preferences

(No idea why they disabled this useful feature by default.)

like image 87
Custom Bonbons Avatar answered Sep 21 '22 09:09

Custom Bonbons