Search for an advanced project search on Xcode 5

I am using Xcode 5 and I want to find the word (ex: variable name) not by substring, but by exact match (or by prefix match). In the advanced file search (Command-F), I can use text search or regular expression search by clicking the arrow button to the right of the glass icon and selecting "Change search options ...". But in Xcode 5 I can’t find any search option for the advanced project search ("Find in project", Shift-Command-F). The only thing I can do is run grep -w on Terminal.app. But is there no way to find a word in a project inside Xcode?

+4
source share
2 answers

Well, it looks like the search tool in Xcode 5 is a bit confusing for many people. In my opinion, Apple should have done a better job, allowing the user to know what you can click and what not ... Here's how you get access to various parameters:

After switching on Find Navigator, we can see 3 components ( Find> Text> Containing) enter image description here

Now you can click on any of them to choose between different options (à la jumpbar) enter image description here

Finally, you can also click In Workspace(or In Project) to change the search area.

enter image description here

+22
source

Xcode 6 , , , Framework , ( /Library/Frameworks ), , , .

So I clicked In Project and defined a new Scope that specified "within workspace and frameworks".

In Project My Scope ( ) .

+2

All Articles