Search code examples
pycharm

Disable double-shift in pycharm


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.


Solution

  • If you want to disable the double-shift binding completely, do this:

    From version 2021.2

    1. Go to File | Settings.
    2. Click Advanced Settings in the lower left.
    3. Click the "Search advanced settings" text box.
    4. Type "double".
    5. Click the "Disable double modifier key shortcuts" check box.
    6. Click OK.

    See Lejia Chen's comment on issue IDEA-161094 for a graphical illustration.

    (Thanks to Vladimir Markiev for mentioning this change.)

    Before version 2021.2

    Konstantin Bulenkov's comment on issue IDEA-161094 in the JetBrains YouTrack issue tracker gives the following solution which also works in PyCharm:

    1. Press Ctrl+Shift+A to invoke the "Find Action…" dialog.
    2. Type "registry".
    3. Choose "Registry…" from the list.
    4. Find ide.suppress.double.click.handler in the list and check the checkbox next to it. (Note that the name is a misnomer; double-clicking with the mouse will not be affected.)
    5. Press Close.

    This has worked perfectly in PyCharm 2017.3.1 as well as 2019.3.4, and probably up to, but not including, 2021.2.