Search code examples
visual-studiovisual-studio-2010keyboard-shortcuts

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


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.


Solution

  • 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.