在 Xcode 中搜索未找到结果(搜索我的来源) [英] Searching in Xcode not finding results (searching my source)

查看:60
本文介绍了在 Xcode 中搜索未找到结果(搜索我的来源)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我对此很纠结,Google 的结果有偏差,因为它认为我想了解如何编写代码.

I'm pulling my hair out on this and Google results are skewed since it thinks I want to find out how to code something.

我的问题是,当我尝试使用字符串匹配框搜索我的代码时,它什么也没找到,即使我输入了下面屏幕上的内容.

My problem is that when trying to search my code with the String Matching box it finds nothing, even if I enter something that is on the screen below.

是否是 Spotlight 提供了这些结果?我没有排除 Spotlight 索引中的任何内容,所以我应该重建索引吗?

Is it Spotlight that is delivering these results? I'm not excluding anything in my Spotlight index so should I just rebuild the index?

推荐答案

在 Xcode 搜索字段的顶部,您可能想要选择:

At the top of the Xcode search field, you probably want to select:

Find > Text > Containing

而不是

Find > Text > Matching

我没有(有意地)将其切换为匹配",但它已经设置好了.对于大多数搜索而言,包含"是一种更有用的搜索类型.

I did not (knowingly) switch this to "Matching", but there it was set. "Containing" is a more useful search type for most searches.

这篇关于在 Xcode 中搜索未找到结果(搜索我的来源)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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