列出已綁定的快捷鍵。PS $env:USERPROFILE> Get-PSReadLineKeyHandler
列出其他未綁定的快捷鍵。PS $env:USERPROFILE> Get-PSReadLineKeyHandler -Unbound
要綁定的快捷鍵功能可參考上述指令結果。
編輯設定檔。PS $env:USERPROFILE> notepad(或其他文字編輯器) $PROFILE
寫入新的快捷鍵並存檔,如:Set-PSReadLineKeyHandler -Key Tab -Function MenuComplete Set-PSReadLineKeyHandler -Key Ctrl+k -Function ForwardDeleteInput Set-PSReadLineKeyHandler -Key Ctrl+RightArrow -Function ForwardWord
即套用在新的PowerShell視窗。
powershell — 2025年12月27日
Made with ❤ and at Taiwan.