Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Xcode find in document stuck in case-sensitive

Tags:

find

xcode

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.

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.

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.

like image 853
mjdth Avatar asked Nov 04 '10 22:11

mjdth


People also ask

How to find a case insensitive sub string in C++?

In this article, we will look at how to use C++ to find a Case Insensitive Sub String in a given string. Convert both the mainstring and matchstring to lowercase. Then use the std::string::find is used to search for substrings within a string.

How to query with case insensitive search in MongoDB?

MongoDB query with case insensitive search? MongoDB query with case insensitive search? For case, insensitive search, use regex in find () method. Following is the syntax − To understand the above syntax, let us create a collection with documents −

How to turn case sensitivity on/off by default?

So instead of always saying 'Match case (Alt + C)' we might say 'Toggle case sensitivity {on/off} (Alt + C)' depending on the state of the toggle. That might help with identifying these as toggles. Another option is that we might consider turning case sensitivity on by default whenever the user toggles regex search on.

How do I change the regex case sensitivity?

You can toggle between case-sensitive and case-insensitive using Alt+C Sorry, something went wrong. Yes the Aa icon controls the regex case sensitivity flag.


2 Answers

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.

like image 186
mjdth Avatar answered Oct 04 '22 10:10

mjdth


You can set parameters for search by clicking on magnifier placed 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.

Screenshot depicting search options available

like image 42
Jayprakash Dubey Avatar answered Oct 04 '22 11:10

Jayprakash Dubey