- Add or open your PowerShell profile (to make the changes permanent)
ii $PROFILE.CurrentUserAllHosts
- Add the following lines
# Tab autocomplete
Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete
# Arrow-key autocomplete
Set-PSReadlineKeyHandler -Key UpArrow -Function HistorySearchBackward
Set-PSReadlineKeyHandler -Key DownArrow -Function HistorySearchForward