- First download powershell 7
Get-Host | Select-Object Version
winget search powershell
# If have more than one record, then use the version ID
winget install Microsoft.PowerShell
# Finally change the default terminal in terminal settings
- Config the autosuggestion autostart
Find the powershell 7 shortcut(快捷方式), right click property
and replace the target
with "C:\Program Files\PowerShell\7\pwsh.exe" -noe -c "&{ Set-PSReadLineOption -PredictionSource History -ShowToolTips}" -WorkingDirectory ~