Visual Studio 2013: Cut or Delete the Current Line

Tips Search

Visual Studio 2013: Cut or Delete the Current Line

  • Comments 2

You can quickly and easily cut or delete the current line. Just do one of the suggestions below.

 

 

Begin any operation by placing your cursor anywhere on the line:

5-16-2012 1-27-53 PM

 


Cut The Current Line

Use CTRL + L to cut only the text on the line without the carriage return at the end.

Or use SHIFT + DEL or CTRL + X to cut the line and the carriage return at the end.

 

 

Delete the Current Line

If you want to DELETE the line instead you can use CTRL + SHIFT + L.

  • I'm able to do this in VS2012 as well, but I don't see much of a difference between Ctrl + L and Ctrl + Shift + L, both remove the entire line and the carriage return at the end.

    Arun

  • Arun -- if you re-read the specifics, you'll see that CTRL-L places the line's content into your clipboard, while CTRL-SHIFT-L does not.

    -Dan

Page 1 of 1 (2 items)
Leave a Comment
  • Please add 1 and 7 and type the answer here:
  • Post