SeinopSys
SeinopSys

Reputation: 8937

Stop PHPStorm from cutting/copying the entire line if nothing is selected

If I set the caret on a line and accidentally press CtrlX or CtrlC instead of CtrlS, then the entire line is cut/copied, since there is no selection.

This can be very annoying, and can often times destroy code in the clipboard which I wanted to paste. I'd expect nothing to happen if nothing is selected. How can this be turned off?

Upvotes: 12

Views: 2361

Answers (1)

LazyOne
LazyOne

Reputation: 165088

  1. Go to Registry screen: Help | Find Action... and search for registry there

  2. Once there -- find and activate editor.skip.copy.and.cut.for.empty.selection entry.

enter image description here

Upvotes: 19

Related Questions