Question

I know it's not directly related to programming, but what better place then stackoverflow right?

So code folding is an awesome feature which I love, but does anyone know if there is a way to get Xcode to remember where you have certain sections collapsed whenever you open a file?

BTW, I'm coding ruby on rails using git version control.

Was it helpful?

Solution

Code folding for a source file is saved in the user file of the project. So if you're just editing a naked Ruby source file, there's no place to store the information. You might just make a dummy Empty Project and add the Ruby files to it just to persist the folding state, scroll position, etc. even if you don't use the project for building or version control.

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