Question

I've just started using Xcode and discovered that folders are mixed with files of the same level alphabetically.

Is there a way to have folders displaying on top and then files of the same parent folder? Just like in TextMate's FileBrowser.

Current displaying is:

enter image description here

I want it to be:

enter image description here

Thanks in advance.

Was it helpful?

Solution

Changing the MacOS Finder preferences will cause XCode to also display folders before files at the same level.

  • Find and check the checkbox under Finder -> Preferences -> Advanced labelled Keep folders on top: In windows when sorting by name.

  • Restart XCode and you will find the new sort order is honored.

enter image description here

OTHER TIPS

Just mouse-down on an item and move it. The file or folder level can also be changed this way. You can make folders from the menubar :File:New:Group".

I see that you are using folder references, not groups. If there is no specific reason to use folder references then change to use groups. When dragging in a folder of files there is the option of folder references or groups. Since folder references are a mirror of the directory structure and can not be changed in Xcode. I suspect the OP really wants groups.

When you are at the very bottom you can drag horizontally to select the level to move to. See added image.

enter image description here

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