Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to change key shortcuts in PyCharm?

Tags:

pycharm

Is it possible to change the shortcut for "Execute Selection in Console" from alt+shift+e to command+enter, similarly to RStudio?

like image 733
user3575876 Avatar asked Apr 04 '17 12:04

user3575876


People also ask

Can you change shortcut keys?

You can customize keyboard shortcuts (or shortcut keys) by assigning them to a command, macro, font, style, or frequently used symbol. You can also remove keyboard shortcuts. You can assign or remove keyboard shortcuts by using a mouse or just the keyboard.

How do I change the keyboard layout in PyCharm?

In PyCharm, one often uses Alt + Shift + E to execute code. In Windows 10, Alt + Shift (sometimes Ctrl + Shift) also switches keyboard layouts, so this explains the behavior.

How do I import a key into PyCharm?

Open the file in the editor, press Ctrl+Alt+Shift+L , and make sure the Optimize imports checkbox is selected in the Reformat File dialog that opens.


3 Answers

Go to File > Settings > Keymap. You should be able to see something similar to this:

enter image description here

You can remove the current shortcut key, and add a new one.

like image 189
DrKaoliN Avatar answered Oct 25 '22 12:10

DrKaoliN


enter image description here

You can also set the shortcut settings of an IDE you are used to. For instance, I'm used to using eclipse so I switched to eclipse.

like image 29
drorhun Avatar answered Oct 25 '22 13:10

drorhun


Yes, go to keymap in Settings , right click u will have option like add keyboard shortcut and add mouse shortcut.

like image 21
Saurabh Pandey Avatar answered Oct 25 '22 13:10

Saurabh Pandey