26
Environment: XUbuntu 13.04, Java: Oracle 7 u40
PyCharm 3.0 Community Edition

Any shortcut which involves Ctrl key is not working. For example, I can Copy-Paste text using mouse or middle-button, but not via Ctrl+C/Ctrl+V. When I hover mouse in menu, I can see shortcut tooltip and Settings confirm that shortcut is correct. But it is not working.
Shortcuts with Alt, like Alt+F7 work normally.

Other apps, for example, Aptana studio - which is Java and Eclipse-based works normally. All system applications work with Ctrl button OK.

2

13 Answers 13

21

Probably IBus is messing with your Java keyboard shortcuts. Just do

killall ibus-daemon
1
  • jammed pycharm for me on 14.04
    – Gil Hiram
    Dec 17, 2017 at 7:57
17

I was able to resolve my problem seemingly by rearranging my keyboard layouts on Debian, so that my English(US) keyboard was on top. I'm only putting this down as a answer because its a solution that is stuck in the comments section and not as an actual answer.

4
  • 1
    Ubuntu 15.04 running Dovark layout. Moving english to the first spot fixed me instantly. I was going crazy. Thanks!
    – Ominus
    Oct 12, 2015 at 15:56
  • I had OS X running with an Australian keyboard setting: & the lack of some option key choices was also driving me crazy. In particular the failure of the intention shortcut. Adding the US keyboard and making it the active one fixed the problem. Thanks for the suggestion
    – KiwiMartin
    Jul 28, 2016 at 23:48
  • Finally! I had croatian keyboard layout as first. Moving en-us to the first spot fixed ctrl-slash in PyCharm 2016.3 and Kubuntu 16.10. for commenting and uncommentig multlines
    – Hrvoje T
    Dec 17, 2016 at 20:25
  • In Ubuntu 19.04 with KDE it goes to System Settings > Keyboard > Layouts, tick "Configure layouts" and move "English (US)" on top. After that all hotkeys in Java products works well with IBus regardless of selected layout. Aug 6, 2019 at 9:08
11

If you have installed Vim emulator, make sure it's not interfering with IDE shortcuts.

  1. Go to settings -> Vim emulation
  2. Then assign IDE or Vim to any of the shortcuts you want.
1
  • They are crazy that it's turned on by default. :D That happened to me.
    – Michal G
    Jun 8, 2018 at 14:38
8

In case you are using Ubuntu, disable Vim Emulator in pyCharm:

Tools > Vim Emulator

1
  • Altho this is really not an advice to disable a tool you're using, this indeed caused my issue.
    – CermakM
    Oct 12, 2018 at 12:12
4

Solution to the above problem is simple:

Turn off Vim Emulation in the Tools menu

Edit: I had the same problem, and this solved

1
  • please add the reasoning for your answer Apr 12, 2019 at 5:52
3

I entered to File-Settings-Keymap and then I changed keymap version from existing to VisualStudio and it started to work correctly.

1
  • For some reason the stupid IDE switched my layout to osX Jan 2, 2020 at 8:29
2

Thats probably because the keyboard layout opted during installation is either MAC OS X . I suggest you can try out different layouts.

You can select different layout File>Settings>Keymap>Select one that is suitable for your system

2

I have faced the same issue. Please navigate as below to make the ctrl, alt work as expected:

file >> setting >> keymap >> change to XWin

Hope this helps

1

Rebooting my computer fixed the problem.

1

If you are using Vim Emulation, it's possible that it's intercepting some Ctrl/Alt combinations. To see if this is the case you can go to Settings/Other Settings/Vim Emulation and switch the Handler dropdown from Vim to IDE.

1

Please, take a look at this question (worked for me in Ubuntu 16.04).

In my case, some PyCharm shortcuts were being shadowed by Ubuntu shortcuts, such as Ctrl+Alt+S, which opens the Settings window on PyCharm, but corresponds to the 'Toggle shaded state' shortcut on Ubuntu.

I simply disabled the Ubuntu shortcut and the corresponding PyCharm shortcut worked like a Charm (pun intended).

1

It worked for me: View > Quick Switch Scheme... > Keymap > Windows My version of Pycharm: 2022.3 built on November 30, 2022

1
  • For those use Xubuntu: KDE Aug 15 at 23:44
0

On my mac, I fix this by unplugging and replugging in my keyboard. Only mention it as I didn't see it here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.