views:

54

answers:

2

In Unix-y editors, you can often press CTRL-k (kill) to delete everything after the text caret position on the current line.

Is there an equivalent "single action" in the Visual Studio 2008 text editor?

+2  A: 

SHIFT+END, DELETE is the only thing I can think of. You could macro-ize this, I suspect.

jeffamaphone
and assign Ctrl+K to the macro!
No Refunds No Returns
That may not be the best idea, since CTRL+K is the beginning of a chorded keyboard command in VS... You'd lose a lot of other functionality (like my favorite CTRL+K,CTRL+C to commentize a block of code).
jeffamaphone
Also, here's a list of keyboard shortcuts for VS: http://www.dofactory.com/ShortCutKeys/ShortCutKeys.aspx
jeffamaphone
+4  A: 

In Tools|Customize look at the Commands tab. There is a Delete to EOL command. You can drag it to a toolbar. Also you can assign a shortcut key.

Permaquid