Reputation: 26409
I'd like to know how to disable "double-shift" hotkey that opens "search everywhere" window in pycharm, or at least remap it to something sane.
It gets in my way and disrupts any attempt to work with the editor.
There's no information on the subject anywhere on the internet.
I'm using PyCharm community edition 2016.1.3 on windows 7 64bit.
Upvotes: 24
Views: 8572
Reputation: 1649
If you want to disable the double-shift binding completely, do this:
See Lejia Chen's comment on issue IDEA-161094 for a graphical illustration.
(Thanks to Vladimir Markiev for mentioning this change.)
Konstantin Bulenkov's comment on issue IDEA-161094 in the JetBrains YouTrack issue tracker gives the following solution which also works in PyCharm:
This has worked perfectly in PyCharm 2017.3.1 as well as 2019.3.4, and probably up to, but not including, 2021.2.
Upvotes: 43
Reputation: 41
The solutions in this thread don't work in 2021.2.1. The registry option is gone and adding a custom shortcut does not disable double-shift. The solution is to enable the following:
Settings | Advanced Settings | Disable double modifier key shortcuts
More info in this issue: https://youtrack.jetbrains.com/issue/IDEA-161094
Upvotes: 4
Reputation:
Vladimir Kravets suggested fix in the Youtrack Bugtracker disables this feature. Quote:
I found workaround.
Open lib/resources.jar/idea/PlatformActions.xml and remove or comment such line:
<action id="SearchEverywhere" class="com.intellij.ide.actions.SearchEverywhereAction" />
So close Pycharm, open this Jar with the 7-Zip File Manager, extract the XML file, outcomment the above line, save the file, move it back into the Jar (using the 7-Zip File Manager again), restart Pycharm.
BTW, in that XML file there is also one closing >
too much in the line above.
Tested with Pycharm 2017.1.2 on Windows 7.
Upvotes: 3
Reputation: 71
If you go to file > settings > keymap tab and search for "search anywhere" you can remap the key. Once you remap, double shift doesn't seem to open the search dialogue.
For some reason, the double shift tap shortcut doesn't appear in the keymap, and becomes the default again if you remove your custom binding.
Just pick a key you're not using.
Upvotes: 7