Mateus
Mateus

Reputation: 2668

Xcode code folding issue

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?

Upvotes: 1

Views: 263

Answers (2)

Krunal
Krunal

Reputation: 79776

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.

Upvotes: 1

jhilgert00
jhilgert00

Reputation: 5489

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

Upvotes: 0

Related Questions