Powershell Hotkey to Erase Current Line?
Asked Answered
G

2

16

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

Godown answered 30/8, 2010 at 14:34 Comment(0)
T
37

Esc works for me

Tham answered 30/8, 2010 at 14:43 Comment(1)
Thanks, that does indeed work. Ctrl-C also effectively does the same thing.Godown
P
14

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.

Payne answered 29/5, 2011 at 23:20 Comment(1)
Works perfectly, thank youMayo

© 2022 - 2024 — McMap. All rights reserved.