Xcode 在文档中查找卡在区分大小写的位置

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4101875/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-14 19:53:49  来源:igfitidea点击:

Xcode find in document stuck in case-sensitive

xcodefind

提问by mjdth

When in Xcode editing code for my objective C files, I often press Command-F to bring up the little Find-In-Document banner across the top. Sometimes this gets stuck in case-sensitive search, and when it does that it also won't loop through the entire document and sometimes won't even display the selected found string.

在 Xcode 中为我的目标 C 文件编辑代码时,我经常按 Command-F 以在顶部显示小的 Find-In-Document 横幅。有时这会卡在区分大小写的搜索中,当它这样做时,它也不会遍历整个文档,有时甚至不会显示选定的找到的字符串。

I can't find any options to turn off the case sensitivity, and I never intentionally turned it on. I've restarted xcode several times hoping that would be it but it's changed nothing.

我找不到任何关闭区分大小写的选项,而且我从未故意打开它。我已经多次重新启动 xcode,希望就是这样,但它没有任何改变。

Slightly off-topic, but this was the best place I could think of to ask this question. Thanks for any response!

有点跑题了,但这是我能想到的最好的地方来问这个问题。感谢您的任何回应!

EDIT: I've also tried restarting the computer. Still no dice. Also this happens on any project I open in xcode and is not specific to one project.

编辑:我也试过重新启动计算机。仍然没有骰子。这也发生在我在 xcode 中打开的任何项目上,而不是特定于一个项目。

回答by mjdth

Anna's comment is the correct answer: When you press Cmd-F, clicking on the little magnifying glass next to the search input brings up a menu where you can check/uncheck Ignore Case.

Anna 的评论是正确答案:当您按下 Cmd-F 时,单击搜索输入旁边的小放大镜会弹出一个菜单,您可以在其中选中/取消选中忽略大小写。

回答by Jayprakash Dubey

You can set parameters for search by clicking on magnifierplaced in left-side of search-bar. There is provision to select/de-select "Match Case"i.e. case-sensitive search on pop-up shown. Below is screenshot for the same.

您可以通过单击放置在搜索栏左侧的放大镜来设置搜索参数。可以选择/取消选择“Match Case”,即在显示的弹出窗口中区分大小写的搜索。下面是相同的屏幕截图。

Screenshot depicting search options available

描述可用搜索选项的屏幕截图