How to delete from cursor until end of line with VS or Power Tool

16.1k Views Asked by At

In VS2010, how can I delete from the cursor position until the end of the line. I once read about such a shortcut, but now cannot find it.

4

There are 4 best solutions below

4
On BEST ANSWER

The Editor Command is called Edit.DeleteToEOL You can see it in the Tools --> Options --> Environment --> Keyboard Dialog. There is no predefined keyboard shortcut assigned to it, but Visual Studio gives you the option of creating one.

enter image description here

0
On

Visual Studio doesn't have key combination to delete from cursor to end line.

I use Shift + End and Delete.

4
On

10 years have passed on this one. I am running VSCode v1.64.2 on a macbook and control+k will delete from your cursor to the end of a line.

0
On

2024 : You can bind to "Delete all right" :

Screenshot