I would like to execute a hotkey that would erase the current line in the powershell session. Is such a thing possible?
Asked
Active
Viewed 3,212 times
2 Answers
32
Esc works for me

Bahbar
- 17,760
- 43
- 62
-
2Thanks, that does indeed work. Ctrl-C also effectively does the same thing. – MattUebel Aug 30 '10 at 18:38
11
Besides using Esc to clear the whole line, you can also use:
Ctrl+Home to erase from the current position back to the beginning, or
Ctrl+End to erase from the current position to the end.

Emperor XLII
- 13,014
- 11
- 65
- 75