curthipster
curthipster

Reputation: 3671

How do you sort the source tree in project navigator in Xcode 4?

In Xcode 3, it was relatively easy to sort the source tree by name (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.

Upvotes: 7

Views: 4273

Answers (3)

macandyp
macandyp

Reputation: 817

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."

Upvotes: 17

pho0
pho0

Reputation: 1751

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.

Upvotes: 3

Joshua Nozzi
Joshua Nozzi

Reputation: 61228

There is no sort for the project navigator beyond drag and drop. Probably because it would be too easy to obliterate your careful organization.

Upvotes: 3

Related Questions