It is tedious that for long file I have to fold again if statements when opening that file. Can I avoid it?
I’m working on a project in Xcode, and I frequently fold certain sections of my code for better readability. However, I’ve noticed that when I close a file and reopen it, Xcode does not remember the folding state of the code sections. This is quite frustrating as I have to manually refold the same sections every time.
I have tried the following to solve this issue:
Enabled Reopen projects when Xcode starts in Xcode > Preferences > General.
Regularly saved my project using File > Save.
Closed files using the close button on the file tab instead of closing the entire project.
Properly quit Xcode using Xcode > Quit Xcode.