I want to delete a line just like hitting ctrl+x
without anything selected, but without saving the line to the copy stack. Is this possible?
This is using Visual Studio 2010.
I want to delete a line just like hitting ctrl+x
without anything selected, but without saving the line to the copy stack. Is this possible?
This is using Visual Studio 2010.
Shift+Delete will completely delete the line that the cursor is on. No clipboard, nothing. It is of course undoable.
Ctrl + Shift + L will delete the line and not copy to the clipboard
Edit.LineDelete is the name of the command. By default it's bound to CTRL-SHIFT-L, but you can give it whatever you like in Tools | Options | Keyboard.
Edit: Corrected default shortcut info.
I mapped Ctrl+L
(Global) to Edit.LineDelete
. Otherwise, the shortcut key is Ctrl+Shift+L
, which is ackward. Go to Tools > Options > Keyboard
as shown below.