Xcode - search text in all files

后端 未结 6 1411
独厮守ぢ
独厮守ぢ 2020-12-15 02:23

Is there a way to search through all Xcode project files? I know that I can find some text inside file with finder, but finding something with Xcode will be very helpful. Wh

相关标签:
6条回答
  • 2020-12-15 02:46

    In find use: Find > Text > Containing

    0 讨论(0)
  • 2020-12-15 02:48

    To do it simply from the UI, with a click

    By default, this will be searching through the entire project searching for any files containing the specific string you entered.

    From this point, you can start doing more stuffs like replace all, etc, like this

    0 讨论(0)
  • 2020-12-15 02:50

    Use Command + 3 a minimum keyboard shortcut or Command + Shift + f

    0 讨论(0)
  • 2020-12-15 02:51

    Use cmd + shift + f for complete Xcode search.

    0 讨论(0)
  • 2020-12-15 03:02

    On the left hand side of the editor you have a magnifying glass. There's a search box there. That should do the trick. (it's called the search navigator)

    cmd + shift + f opens it too.

    0 讨论(0)
  • 2020-12-15 03:03

    Right Click on any text and select 'Find Selected Text in Workspace'

    In my experience, cmd + shift + f requires cmd + c before hand to populate the search term. So, my go to search for text in all files is to do the above.

    0 讨论(0)
提交回复
热议问题