Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Project wide word matching search on Xcode 5

I'm using Xcode 5, and want to find a word (ex:variable name) not by substring match but by exact match (or prefix match). In file wide search (Command-F), I can use Textual search or regular expression search by clicking the arrow button just right of the glass icon and choosing "Edit Find Options...". But, I cannot find any option to search on project wide search ("Find in Project", Shift-Command-F), in Xcode 5. One thing I can do is run "grep -w" on Terminal.app. But, isn't there any way to search word in Project inside Xcode?

like image 926
Tsuneo Yoshioka Avatar asked Nov 28 '22 21:11

Tsuneo Yoshioka


1 Answers

Well it seems that the search tool in Xcode 5 is a bit confusing for a lot of people. In my opinion Apple should have done a better work letting the user know of what is clickable and what not... That being said, here is how you access the different options:

Once we switch to the Find Navigator we see 3 components (Find>Text>Containing) enter image description here

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

And finally you can also click the In Workspace (or In Project) to change the scope of your search

enter image description here

like image 155
Alladinian Avatar answered Dec 09 '22 18:12

Alladinian