I would like to execute a hotkey that would erase the current line in the powershell session. Is such a thing possible?
Powershell Hotkey to Erase Current Line?
Asked Answered
Esc works for me
Thanks, that does indeed work. Ctrl-C also effectively does the same thing. –
Godown
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.
Works perfectly, thank you –
Mayo
© 2022 - 2024 — McMap. All rights reserved.