11---
22description : Describes how to edit commands at the PowerShell command prompt.
33Locale : en-US
4- ms.date : 09/12/2022
4+ ms.date : 02/24/2025
55online version : https://learn.microsoft.com/powershell/module/microsoft.powershell.core/about/about_line_editing?view=powershell-7.4&WT.mc_id=ps-gethelp
66schema : 2.0.0
77title : about_Line_Editing
@@ -15,8 +15,17 @@ Describes how to edit commands at the PowerShell command prompt.
1515
1616## Long description
1717
18- The PowerShell console has some useful keyboard shortcuts to help you edit
19- commands at the PowerShell command prompt.
18+ The PSReadLine module provides useful keyboard shortcuts to help you edit
19+ commands at the PowerShell command prompt. The key bindings discussed in this
20+ article are the default key bindings on Windows platforms. You can create
21+ custom key bindings by using the ` Set-PSReadLineKeyHandler ` command.
22+
23+ On non-Windows platforms, PSReadLine defaults to the ` Emacs ` edit mode. You can
24+ change the edit mode using the ` Set-PSReadLineOption ` command. PSReadLine has
25+ three edit modes: ` Emacs ` , ` Vi ` , and ` Windows ` .
26+
27+ To see the current edit mode, use the ` Get-PSReadLineOption ` command. To see a
28+ list of the current key bindings, use the ` Get-PSReadLineKeyHandler ` command.
2029
2130### Add a line
2231
@@ -76,6 +85,10 @@ key. To scroll through a list of values, press the <kbd>Tab</kbd> key again.
7685
7786## See also
7887
79- - [ about_Command_Syntax] ( about_Command_Syntax.md )
80- - [ about_Path_Syntax] ( about_Path_Syntax.md )
81- - [ about_PSReadline] ( ../../PSReadline/About/about_PSReadline.md )
88+ - [ about_PSReadLine] ( ../../PSReadLine/About/about_PSReadLine.md )
89+ - [ about_Tab_Expansion] ( about_Tab_Expansion.md )
90+ - [ Get-PSReadLineOption] ( xref:PSReadLine.Get-PSReadLineOption )
91+ - [ Get-PSReadLineKeyHandler] ( xref:PSReadLine.Get-PSReadLineKeyHandler )
92+ - [ Set-PSReadLineOption] ( xref:PSReadLine.Set-PSReadLineOption )
93+ - [ Set-PSReadLineKeyHandler] ( xref:PSReadLine.Set-PSReadLineKeyHandler )
94+ - [ Using PSReadLine key handlers] ( /powershell/scripting/learn/shell/using-keyhandlers )
0 commit comments