Is there a way to delete a line in Visual Studio without cutting it?
Solution 1:
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.
Solution 2:
Ctrl + Shift + L will delete the line and not copy to the clipboard.
Solution 3:
I mapped Ctrl + L (Global) to Edit.LineDelete
. Otherwise, the shortcut key is Ctrl + Shift + L, which is awkward. Go to Tools > Options > Environment > Keyboard
as shown below.