13

I would like to execute a hotkey that would erase the current line in the powershell session. Is such a thing possible?

MattUebel
  • 2,737
  • 4
  • 21
  • 22

2 Answers2

32

Esc works for me

Bahbar
  • 17,760
  • 43
  • 62
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