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.
If the cursor is in the middle of a word when
Ctrl+Delete is pressed, then the portion of the word to the right of the cursor is deleted.
But, this shortcut is most useful with whitespace. All whitespace to the right of the cursor is considered to be a word. So, by placing the cursor in the middle of whitespace and pressing
Ctrl+Delete removes all the whitespace to the right of the cursor up to the next alphanumeric character. This is very useful when aligning text or just removing a lot of spaces. Surely easier than pressing Delete a lot of times! 😊
Tried with: Visual Studio 2010