Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Smart Case sensitivity Search in PyCharm

Tags:

Is there a smart case sensitivity search in PyCharm?

In the past I used an editor which did case insensitive search if I used lower case.

As soon as I used the first upper case character the search was case sensitive.

I liked this.

Can I enable this in PyCharm?

BTW: of course I know that I can enable case sensitive search in PyCharm. This question is about the "smartness" of switching to case sensitive search.

like image 855
guettli Avatar asked Mar 28 '18 07:03

guettli


People also ask

Is PyCharm case-sensitive?

PyCharm, a dedicated Python Integrated Development Environment (IDE), assumes that macOS filesystems are case-insensitive. However, if you are on a case-sensitive file system, unexpected things may happen, such as missing files, undetected external changes, file cache conflicts and excessive indexing.

Can you do a case-sensitive search?

By default, searches are case-insensitive. You can make your search case-sensitive by using the case filter. For example, the following search returns only results that match the term HelloWorld . It excludes results where the case doesn't match, such as helloWorld or helloworld .

How do I search Google case-sensitive?

Google searches are not case sensitive. All letters, regardless of how you enter them, are understood as lower case. For example, searches for "george washington," "George Washington," and "George Washington" all return the same results.

How do I search insensitive in Vi case?

Searches normally are case-sensitive: a search for "china" will not find "China." If you want vi to ignore case during a search, type :set ic . To change it back to the default, case-sensitive mode, type :set noic . If vi finds the requested string, the cursor will stop at its first occurrence.


2 Answers

As it seems that this is not possible, you could always register your previous editor as an external tool in PyCharm, and add a keyboard shortcut for quick smart case-sensitive searches.

Sometimes, the external editor makes it easier to do simple edits. PyCharm should update as soon as you save the file in the external editor.

like image 68
serv-inc Avatar answered Sep 23 '22 12:09

serv-inc


Answer is No.

Python is mostly typed in lower case. Simple thing is to just click Alt+C which check marks Match Case as you are aware.

So I think most editors do not have the smart search you are mentioning intentionally so that they want user to explicitly control what they are searching.

You might want to look at search.py at C:\Program Files\JetBrains\PyCharm Community Edition 2017.3\helpers\pydev\pydevd_attach_to_process\winappdbg\search.py and fiddle with it a little and check if you can get this smartsearch feature.

like image 25
Morse Avatar answered Sep 21 '22 12:09

Morse