问题
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?
回答1:
Go to Registry screen:
Help | Find Action...
and search forregistry
thereOnce there -- find and activate
editor.skip.copy.and.cut.for.empty.selection
entry.
来源:https://stackoverflow.com/questions/27697758/stop-phpstorm-from-cutting-copying-the-entire-line-if-nothing-is-selected