Powershell Ctrl+U Ctrl+Kwindtail 2024-10-27 48 words One minute Contents 在 bash 中 ctrl-u/ctrl-k 是很常用的快捷键,但是 powershell 里没有,notepad $PROFILE 在其中添加以下两行Set-PSReadLineKeyHandler -Key Ctrl+u -Function BackwardDeleteLine Set-PSReadLineKeyHandler -Key Ctrl+k -Function ForwardDeleteLine 参见这里 和这里