Find and replace in a dedicated or single file - Xcode 4.5

I am stuck in the Xcode puzzle: how can I find and replace either in the element I selected, or at least in only one file?

In accordance with the following topic, to hold down the selection key and “Replace All” should be changed to “Replace In Selection”:

How can I find and replace inside a selection in Xcode?

This either doesn't happen in Xcode 4.5, or I don't know how to do it. Right now, I can open the find / replace option in the search navigator on the left, then click "Return to Search" or click "Preview" to open which files need to be changed.

As a temporary solution, you can search in the selected group (by right-clicking on the group in the navigator file), but being able to replace in the selection I did, and it will be very useful in one file.

Thanks in advance, -)

+4
source share
1 answer

In Xcode 4.6 (I no longer have 4.5 on my system to test it) if you are in the editor window and press Cmd-F to open the Find view at the top of the editor (unlike the global search inspector, about which you say) and use the "Replace" parameter in it, holding down the "Change all" to "In selection" keys. This seems reasonable, since the global search inspector is located across several files, while the “Select” option really makes sense when you access a single file.

+6
source

All Articles