Is there a way to delete a line in Visual Studio without cutting it?

JChristian picture JChristian · Sep 17, 2010 · Viewed 46.4k times · Source

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?

I'm using Visual Studio 2010.

Answer

Kirk Woll picture Kirk Woll · Sep 17, 2010

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.