在Xcode中搜索多个字符串 [英] Search multiple strings in Xcode

查看:404
本文介绍了在Xcode中搜索多个字符串的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有什么方法可以搜索 string1 ||之类的东西string2 在我的Xcode项目和/或在一个单一的文件?

当这样做,我希望Xcode突出显示任何地方找到 string1 OR string2

解决方案

是的,你可以使用正则表达式,例如 string | string2



在整个项目中搜索多个文件:



对于单个文件搜索,只需使用正常查找,然后将查找选项从文本正则表达式:




Is there any way that I can search something like string1 || string2 in my Xcode project and or in a single file?

When doing such I want Xcode to highlight wherever it finds string1 OR string2.

解决方案

Yes, you can just use a regular expression, e.g. string|string2.

For multiple file search across whole project:

For single file search then just use the normal find and change the Find Options from Textual to Regular Expression:

这篇关于在Xcode中搜索多个字符串的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆