How to keep the file tree status in Xcode?

It's not important issue for programming, but very annoying: I'm working on a complex project in Xcode. Thus I just open the path for the code respectively files, I'm working on. Unvortunately Xcode is resetting the tree after each rebuild or new tab. How can I avoid this annoying behaviour of Xcode?

How to keep the file tree status in Xcode?
 
 
Q