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

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.



Solution 1:[1]

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

Solution 2:[2]

Visual Studio doesn't have key combination to delete from cursor to end line. I use Shift+End and Delete.

Solution 3:[3]

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.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Mark Hall
Solution 2 nhahtdh
Solution 3 old_newb