There is the shortcut Shift Del to delete a line, but I want to delete without modifying what is in the clipboard.
Is there some way to configure it or another shortcut?
|
There is the shortcut Shift Del to delete a line, but I want to delete without modifying what is in the clipboard. Is there some way to configure it or another shortcut?
| ||||
|
feedback
|
|
By default, if you are using the C# default profile, you can delete a line using Ctrl + Shift + L. You can customize this using Tools->Customize. Select "Keyboard". Look for the command Edit.LineDelete to assign it to whichever keyboard shortcut you like. | |||||
feedback
|
|
Or, the old fashioned way (for me it is a habit and I even had to think what was the combination :) ):
Works in most text editors :) | |||||
|
feedback
|
|
You can install the Productivity Power Tools, which are made by Microsoft, as an extension. The feature that you might get some use out of is Triple Click, which highlights an entire line when you triple click it. Then you can simply use the Delete key. | |||
|
feedback
|
|
It seems I'm risking a downvote for not providing a single-keystroke solution, but I want to share my solution anyway:
It's quick and has the added advantage that works in other editors as well. | |||||||||||||||
feedback
|
Delon highlighted lines works for Visual Studio 2008. I wouldn't have posted my answer if I hadn't tested it first. – ChrisF Sep 29 '10 at 12:57