Skip to content

powershell 开启补全功能

tab 补全

Autocomplete in PowerShell

编辑配置文件:

powershell
Notepad $profile

添加如下内容:

powershell
# Shows navigable menu of all options when hitting Tab

Set-PSReadlineKeyHandler -Key Tab -Function MenuComplete

智能提示

PowerShell IntelliSense completion

安装 powershell 7.3 或以上版本,默认启用 Predictive IntelliSense 特性。

安装方法:通过 winget 安装

winget 更换国内源

powershell
winget search powershell
winget install --id Microsoft.PowerShell --source winget

Released under the MIT License.