.NET Tip of The Day
Learn one new .NET trick every day
Быстрое пополнение счета телефона      Login or Join

Cut a line into memory

While in Visual Studio.NET source code editor, press Ctrl+L to cut a line of code into memory. This is an easy way to move lines around your pages, or delete a set of lines quickly. Simple, yet useful!

submitted by Grant Merwitz, The X-Box Lounge

1/13/2008

Comments:

It also can be made, having pressed <Ctrl-Insert> for copying line, and <Shift-Insert> for an insert(if in line under cursor nothing is selected).
Also, use <Shift-Delete> to cut line into buffer.

Max404 1/14/2008 8:37:13 AM

You can also press Ctrl+X while nothing is selected, this will act just like Ctrl+L.

Mat 1/14/2008 11:48:33 AM

And Ctrl+C applies also as Mat said (but this copies of course).

murki 1/12/2010 11:56:08 PM

Name
URL
E-mail
Provide your e-mail address to receive notification about new comments.
Message
HTML tags are not supported.
Please add 6 and 5 and type the answer here:
RSS .NET Tip of The Day
Subscribe to receive one tip from the .NET Tips and Tricks Community per day.
Previous Tips of The Day
The best of the .NET Tips & Tricks Community.
.NET Practitioners .NET Tips & Tricks Community
Every .NET practitioner has a trick up in their sleeve. This is the place to share it with other .NET people.
Submit a Tip
Discovered a new trick? Share it with others.
My Tips
Manage tips you authored.