Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 404
PaeneInsula Avatar asked May 18 '12 16:05

PaeneInsula


People also ask

How do you delete the remaining portion of the line from the cursor position?

As others have mentioned: you can use d$ or D ( shift - d ) to delete from the cursor position until the end of the line. What I typically find more useful is c$ or C ( shift - c ) because it will delete from the cursor position until the end of the line and put you in [INSERT] mode.

Which hotkey can delete a line from the cursor to the end?

If you're at the end of a line and want to select the complete line, use the shortcut key combination Shift + Home . If there's only one line of text in the document, or you want to delete all text, press Ctrl + A key to select all text. Once highlighted, press delete to delete everything.

How do you move the cursor to the end of line in VSCode?

Add cursors to line ends Mine is Visual Studio Code and the exact command for this is "Add cursors to line ends". The shortcut key is Alt + Shift + I (Windows) or Command + Shift + l (Mac).

How do I delete a character from the right side of the cursor VSCode?

Ctrl+Delete is a very useful keyboard shortcut to remember while using Visual C++ or any other language with Visual Studio. It deletes the word to the right of the cursor. If the cursor is at the beginning of a word when Ctrl+Delete is pressed, then that entire word is deleted.


1 Answers

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

like image 83
Mark Hall Avatar answered Sep 20 '22 16:09

Mark Hall