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.
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.
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.
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).
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With