How could I erase the whole word with using Ctrl-Backspace in Windows XP command line? Is it possible at all?

link|improve this question

40% accept rate
feedback

3 Answers

CMD or Powershell doesn't have a native shortcut to delete the word to the left or right. Here are some examples of what each platform can do. What you could probably do to make it a little easier is use the shortcut to move to the beginning or end of a word and start deleting or backspacing to delete the word.

link|improve this answer
feedback

AHK Code to replicate Ctrl+Backspace functionality to delete previous word. What this does is selects the previous word with Ctrl+Shift+Left, and then presses delete. Works well enough for me in notepad, and other programs, though is bit wonky in win7. Can't confirm for terminal right now.

^BackSpace:: ;;Delete previous word
    Send ^+{Left}{Del}
 Return
link|improve this answer
feedback

It's not possible natively in the Windows command prompt.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.