Search code examples
xcodereplace

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


In Xcode < 4, you could hold the "option" key, and the "Replace All" button would change to "Replace in Selection". As of Xcode 4, this does nothing. Anyone know if there's a new way to do it, or is it bug filing time?


Solution

  • This appears to be working again now, at least in Xcode 4.4.1.

    When the find/replace bar appears at the top of the editor, holding down the option key on the keyboard causes "Replace in Selection" to appear in lieu of "Replace All."

    I'm glad, because this was an ANNOYING omission.