Skip to content

Tip 1.6: You can use Ctrl+L to cut the current line and Ctrl+Shift+L to delete the current line

February 4, 2011

“Visual Studio Tips, 251 ways to improve yourProductivity in Visual Studio“, courtesy of ‘Sara Ford’

Sara Ford’s Blog

Ctrl+L cuts the current line, including the end-of-line character (EOL). The command is Edit.LineCut.
Ctrl+Shift+L deletes the current line, including the EOL. The command is Edit.LineDelete.

Here’s an example of Ctrl+L being used. In this example, you’ll see the cursor before the Console.WriteLine() call.

Editor Ctrl+L to cut line example

And after you hit Ctrl+L, the line disappears.

After hitting Ctrl+L the line has disappeared

But let’s continue on with a bonus tip…. Shift+Delete cuts the current line including the EOL, if nothing is selected on the current line. If text is selected, Shift+Delete cuts just that text.

Happy Programming! =)

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: