Search code examples
idepycharmkeymaps

PyCharm keymap: altered copy and cut commands


I was looking for a way to disable the Copy and Cut commands usual behavior alteration: applying to current line instead of doing nothing when no selection is active.

I'm regularly caught with my emacs user reflex: Ctrl+X, Ctrl+S ... which deletes current line before saving the file !!

I know there is an emacs keymap, but ...I'd prefer not (for instance no reference card for alternate keymaps).

For now the best I could do was to remove Ctrl+X and Ctrl+C shortcuts, and try to get used to their alternate mappings: Ctrl+Insert and Shift-Delete.

Any better ideas ?


Solution

  • Press Ctrl-Alt-Shift-Slash to activate the "Maintenance" menu, select "Registry", enable the editor.skip.copy.and.cut.for.empty.selection option.