In Xcode 3, it was relatively easy to sort the source tree by name开发者_JAVA百科 (see answer here for more details). However, I can't figure out how to sort the files and groups in Xcode 4 without manually dragging them around.
As of Xcode 4.3.1 - Select a Folder/Group in the project navigator area. Then go to Edit->Sort and you can choose "by name" or "by type."
There is no sort for the project navigator beyond drag and drop. Probably because it would be too easy to obliterate your careful organization.
To accomplish something similar without touching your proj file, you may want to become best friends with CMD-SHIFT-O (Open Quickly ... was CMD-SHIFT-D in Xcode3). Start typing the filename and you'll see a list of matching files appear and you just pick from the list.
精彩评论