Disable "Match case" default search behavior

I have used IntelliJ and PyCharm for several years and never had this problem before, so it seems that something has changed in the default settings (?).

In the last few months, it happens often when I search in the code, with CTRL-F (current file) or in CTRL-SHIFT-F (global search) that "Match Case" (Cc icon) is enabled, which causes me not to find what I'm looking for, since I don't consider the case and just type in lowercase.

 

This has never been a problem before. Is there a config option for this behavior? I never use case sensitive search and I have deselected it many times, but it comes back again and again so it seems that the software reverts to this setting being active again and again.

0
2 comments

Hi, 

I can't reproduce the issue in 2021.3 - the "Match case" option's state in the search dialog is remembered even after restarting the IDE.

The state is saved to the `options/find.xml` file in the configuration directory.

Please check if the state is changed there after you change it in the UI.

<application>
<component name="FindSettings">
<option name="caseSensitive" value="true" />
<option name="customScope" value="All Places" />
<option name="defaultScopeName" value="All Places" />
<option name="CASE_SENSITIVE_SEARCH" value="true" />
<option name="SEARCH_SCOPE" value="All Places" />
<mask>*.py</mask>
</component>
</application>
0

I found the cause. It was not PyCharm.

The cause of this happening was that I'm working on a new Macbook which has a touch bar which I wasn't used to.

On the touch bar, upper left is a shortcut for the Case sensitive toggle when searching, and I had mistakenly touched this toggle many times without noticing. So sometimes the case sensitive search would be enabled, and sometimes not, seemingly at random.

 

0

Please sign in to leave a comment.