Question

After updating Xcode(5.0.1),one of my project files is automatically unfolding the code every time i leave the file or close Xcode.And this weird behavior is bothering me a lot,i already tried to delete and recreate it but didn't worked.

Anyone knows what might be causing this single file to have its code unfolded?

Was it helpful?

Solution 2

There's no way around it. xCode will unfold your code automatically. Period. There is no option to "preserve" code folding. (sad, but true...)

OTHER TIPS

With Xcode-9, this issue is resolved. Code folding is being remembered and saved by Xcode 9 Editor.

Code you have/had folded exact before last source build/save, is automatically stored upon document/file closure. And same will be visible as it was (folded) when you will open document/file next time.

You don't need to do anything (there is no any option in Xcode tool bar to enable or disable) to save your code fold.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top