Search code examples
pythonpycharmkeymapping

Pycharm Enter Key is not working


I am facing a very weird problem...

My enter key is not causing a line break in pycharm. When I press enter at the end of a line, the cursor jumps to the front of the next line, without causing a line break.

This suddenly happened, I have no idea why.

I checked my keymap and have reset it, with enter key mapping to enter but this problem still persists.

Does anyone have any solution?


Solution

  • Found the reason causing that. Just like to post a possible solution if anyone else is facing similar problems. It appears that my 'use block caret' box was checked.

    Go to file -> Editor -> General -> Appearance -> 'Use block caret' and uncheck it if it's checked.

    Otherwise, it might be the issue with the keymapping. Go to File -> Settings -> Keymap, search for enter and make sure that it is mapped to enter. OR, just reset the keymap by clicking the reset button on the same page.