Delete Line without Copy

Hi,

there is the nice shortcut Ctrl-X to Cut whole line.
But very often I need a shortcut to delete a line without copying its content to clipboard, because this would delete my old content in clipboard.

Is there such a shortcut ?



Markus

0
5 comments

Shift+Ctrl+L will delete a line but this is a VS shortcut not ReSharper.

In regard to your clipboard, you know that you can view past contents using the ReSharper -> Edit -> Paste options? Shows you past clipboard contents.


--
Hadi Hariri
Technology Evangelist
JetBrains, Inc
"Develop with pleasure!"
http://www.jetbrains.com | http://hadihariri.com | http://twitter.com/hhariri

0
Avatar
Permanently deleted user

Ah... I didn't know the multi paste feature. It's an acceptable workaround.  Thank you!

0
Avatar
Permanently deleted user

Oh... Shift+Ctrl+L is exactly what I wanted. I did know the Ctrl+L only what has same effect as Ctrl+X.

Thank you!



Markus

0

In setting > Keymap search for 「delete line」

For me it's Ctrl + Y

                               -------------Version 2018.1.6

 

1

For future me (probably):

The reason CTRL + DEL deletes the line and copies the content is that (by default) CTRL + DEL is assigned the commands CUT, which I find somewhat misleading...

So, when you want to make CTRL + DEL only delete the line, without copying it:

  • in Settings -> Keymap search for "cut"
  • remove shortcut
  • search for "delete line" and assign CTRL + DEL
1

Please sign in to leave a comment.