Wednesday, July 16, 2008
image

So everyday you possibly write hundreds, maybe thousands, of lines of code. Some of them are perfect, and will continue on to have a long productive life. Others however will be found wanting.

It it for these inadequate lines of code that the delete line keyboard shortcut was designed to deal with. And deal with it does. Instead of having to select a line, or multiple lines, you can simple use the delete line shortcut and wipe away the current line, or the currently selected lines.

Delete Line

Ctrl + L

Note: The image above will take you to a full size image if you want to see this in more detail.

Feedback:

If you have a favorite Visual Studio Tip or Trick be sure to share it in the comments. I’ll compile a list and post it for everyone once there are enough.

PowerPoint: 31 Days of Visual Studio 2008 Tips & Tricks.pptx (Note: PowerPoint is updated daily to include new items.)


Wednesday, July 16, 2008 15:46:00 (Eastern Standard Time, UTC-05:00)  #    Comments [4]  |  Trackback
Thursday, July 17, 2008 03:17:52 (Eastern Standard Time, UTC-05:00)
You can also use

SHIFT + DELETE to delete the current line.
Friday, July 18, 2008 13:09:13 (Eastern Standard Time, UTC-05:00)
The only problem with that is VS uses the clipboard to copy it there first, so if you had anything in the clipboard before you do CTRL + L, it gets erased.
Nish
Friday, August 08, 2008 04:55:00 (Eastern Standard Time, UTC-05:00)
Hi Craig,

Thanks! I added it to the main PowerPoint and to the master post: http://www.cjcraft.com/blog/2008/08/01/31DaysOfVisualStudioTipsAmpTricks.aspx
Friday, August 08, 2008 04:57:15 (Eastern Standard Time, UTC-05:00)
Nish,

I wonder if you cycle the clipboard ring to get around it? or does it completely reset the clipboard. If so let me know, and I'll report that as a bug. I don't think it should do that.
Comments are closed.

Theme design by Jelle Druyts

Pick a theme: