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?
Cut line or selection Set the caret anywhere in the line to cut the whole line, or select a block that you want to cut. Press Ctrl+X or choose Edit | Cut from the main menu .
Duplicate the current line or selectionPress Ctrl+D or choose Edit | Duplicate Line or Selection from the main menu . Alternatively, you can press Ctrl+Shift+A , start typing the command name in the popup, and then choose it there.
Ctrl+Shift+Left, Ctrl+Shift+Right.
To copy and paste, you can use keyboard shortcuts: PC: Ctrl + c for Copy, Ctrl + x for Cut, and Ctrl + v for Paste. Mac: ⌘ + c for Copy, ⌘ + x for Cut, and ⌘ + v for Paste.
Go to Registry screen: Help | Find Action...
and search for registry
there
Once there -- find and activate editor.skip.copy.and.cut.for.empty.selection
entry.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With